Sign In
Forgot Password?
Sign In | | Create Account

Embedded Software Blog

Posts tagged with 'Inline'

22 Nov, 2010

Firmly in line

Posted by Colin Walls

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

Inline, Development Tools

22 Feb, 2010

Staying in line

Posted by Colin Walls

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

Inline

Tags

Archives

 
Online Chat