Forum Discussion
Altera_Forum
Honored Contributor
19 years agoPlacing variables in memory
Hi, I'm developing an application with CyclloneII and I have the issue below: is there a way to place a variable at particular address in memory, something like the "_AT_" flag of som...
Altera_Forum
Honored Contributor
19 years agoHi Emme,
> Note that i want to put the variable in some fixed location, not in some section > like .text,.rodata et., or provided the allocation in a section, I want the freedom to > choose the address within that memory. The compiler puts variables, code, etc. into sections ... there's no choice in this matter other than specifying a compiler output section ... so, if you want to do things at run time, you'll have to use a pointer: alt_u8 *pDummyByte = (alt_u8 *) 0x0080000; or something similar. Regards, --Scott