[ECOS] C variables in sections
will
will_lentz@Trimble.COM
Wed Jan 19 15:49:00 GMT 2000
Is there any way to put a C variable in a specific section
without having to initialize it? I found the following example
for initialed variables:
char stack[10000] __attribute__ ((section ("STACK"))) = { 0 };
When I leave off the initialization to 0, the variable no longer
appears in the appropriate section. I have some battery-backed
RAM that should not be cleared on startup.
Thanks,
Will
PS- I'm new to the GCC cross-compiler (so hopefully this mail
is to the right place..).
More information about the Ecos-discuss
mailing list