3 ms·
That's not entirely true... C imposes some basic architecture structures (heap, stack, calling conventions, etc.) which can impose non-linear efficiency costs.
by cbsmith 11y ago
That's not entirely true... C imposes some basic architecture structures (heap, stack, calling conventions, etc.) which can impose non-linear efficiency costs.
- robryk 11y agoAll of those costs, except for heap allocation related ones, are roughly per-function-call costs. If a function gets inlined, an optimizer can get rid of them. Also, don't some link time optimizers help with pessimizations related to calling conventions?
- cbsmith 11y agoA sufficiently smart compiler/linker can always undo things.