where to put code and data in ROM

Michael K. Elwood mkelwood@qsicorp.com
Thu Aug 23 08:32:00 GMT 2001


> The GCC manual tells us :
>
> extern void foobar (void) __attribute__ ((section ("bar")));
>
> puts the function foobar in the bar section.
>
>
> How do I define
>
> unsigned char globalArchive[] = {0x04, 0x18, 0x00, 0x00, 0x81};
>
> such that this is stored in the bar section as well?

unsigned char globalArchive[] __attribute__ ((section("bar"))) = {0x04,
0x18, 0x00, 0x00, 0x81};



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list