Re:C++ design goals in the context of Rust (2010)
by userbinator on Saturday June 21, 2014 @09:21PM
(#7926569)
Another problem is that C has strict contracts on how parameters are to be passed through, and combined with separate compilation units, this hurts compilers when they try to optimize things
Calling conventions can be a bottleneck but this is not unique to C, any other compiled language allowing separate compilation units to be linked together has the same issue. Techniques like LTCG can avoid it.
But given that C is almost always at or near the top of benchmarks both for size and speed, maybe it's not that much of a bottleneck after all.
Calling conventions can be a bottleneck but this is not unique to C, any other compiled language allowing separate compilation units to be linked together has the same issue. Techniques like LTCG can avoid it.
But given that C is almost always at or near the top of benchmarks both for size and speed, maybe it's not that much of a bottleneck after all.