ok, to be exact.
the global initialized variable is put in .data section. this section is
part of image, which resides in FLASH.
gdb is sure about such section is exist, so the only, single variable
satisfies it. no more global variables, if you prefer, may exist.
is it clear enough?

2007/6/19, Grant Edwards <[email protected]>:

On 2007-06-19, N. Coesel <[email protected]> wrote:

> I don't see the problem either. Local variables allocated in main are
very
> likely to end up on the stack permanently. So moving a local variable
into
> global space is fixing the problem without additional costs.

If the variable is initialized, making it global may actually
save flash memory, since it will be initiazized by the startup code
loop that intiailzes all static data instead of by specific
code in main's preamble.

--
Grant Edwards                   grante             Yow! Maybe we could
paint
                                  at               GOLDIE HAWN a rich
PRUSSIAN
                               visi.com            BLUE --


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users




--
_____________
Oleg V. Kobrin

Reply via email to