Re: Memory management strategy




"Paul Mesken" <usurper@xxxxxxxxxx> wrote
> "Inline functions" are more liable to use more memory since the whole
> function is put in place of the code that calls such a function. If
> some inline function is called at 20 different places in the program
> then the code of that function is placed 20 times in the code. If the
> function is big then this might give a quite substantial code size
> penalty. The fact that the function takes a little bit less code
> because it doesn't need to do stack manipulations (or less stack
> manipulations) doesn't amount to a lot when the code of that function
> is copied 20 times in the program.
>
Unless the instructions go in ROM and the stack goes in RAM, and RAM is
twenty times more precious.



.