Forum Discussion
Altera_Forum
Honored Contributor
21 years agoSorry ... forgot: if it's a const e.g.
const struct foo bar = {...}; The input section will be .rodata Also for initialized data, the size of the struct and the compiler -G option will affect the struct's placement in the .data section or the .sdata section. By default, if the struct is (better check me on this) 8 bytes or less, it'll be in .sdata, otherwise in .data. Regards, --Scott