Posted Nov 22, 2010, by Colin Walls
A common compiler optimization is the inclusion of a function’s code at the location(s) from where the function is called, instead of just having calls to the code located elsewhere: inlining. This provides a speed advantage, as the call/return sequence is eliminated, but may increase the memory footprint, if the function is more than a few instructions and is called more than once. I have written … Read More
Tags:
Inline,
Programming Languages,
Optimization,
Development Tools,
C
Posted Feb 22, 2010, by Colin Walls
The idea of inlining code - placing the actual code of a small function at each call site - is a well known compiler optimization, which I have discussed before. This technique can provide significant performance improvements, due to the elimination of the call/return sequence. Also, stack usage is reduced. There is a possible cost in terms of increased program memory requirement.
It is reasonable … Read More
Tags:
C,
Optimization,
EDGE Compiler,
Programming Languages,
Inline