Vijay Chauhan wrote:
Hi all,
i was reading linux kernel development by robert love.
At one place it was written about inline function
"it increases the code size which increases memory consumption and
instruction cache footprint"
what is instruction cache footprint?? Can anyone please explain this
to me.
The GNC C compiler supports inline functions by substituting the
function code at the function call site, similar to a macro. This is for
better optimization however it does increase code size, memory
consumption and instruction cache size (footprint). The bigger the
function the more resources it will use, therefore inline functions tend
to be used for small, time critical functions.
William
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/