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 ago> Let's say you want to put some data buffer for an isr in a on-chip memory to avoid using slow
> external ram bus - how would you do it with your method? The same way ;-) > To resolve pointer you would still have to access it located in the external ram, so you would > not save any time doint this... This is an optimization issue -- even -O1 will avoid this, and keep the pointer in a register. > It would be great if the gcc compiler implementation for Nios could be extended with some > typical embedded features like "at" directive... The section attribute handles many of these situations. A linker script can handle the rest -- using script defined variables, for example, Regards, --Scott