Re: Memory management strategy
- From: "Malcolm" <regniztar@xxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 21:37:05 +0000 (UTC)
"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.
.
- References:
- Memory management strategy
- From: ira2402
- Re: Memory management strategy
- From: Paul Mesken
- Re: Memory management strategy
- From: Walter Roberson
- Re: Memory management strategy
- From: Paul Mesken
- Memory management strategy
- Prev by Date: Re: WAV file question
- Next by Date: Re: Function calls using variables
- Previous by thread: Re: Memory management strategy
- Next by thread: Re: Memory management strategy
- Index(es):