Takeoff climb limit is independent of runway length. For any takeoff you must assure that you can meet the limitation, normally 2nd segment climb. Takeoff obstacle limits as noted above would require you to have the airport obstacle chart and then work backwards to see what weight would still allow you to miss the obstacles off a given runway.