Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIs it possible to select multiple memory regions for global variables?
Is it possible to select a memory region for specific global (RW or RO) variables? This would be different from the usual region for the RW/RO data. Effectively I need the loader to copy from the...
Altera_Forum
Honored Contributor
13 years agoSure, you can use the attribute directive.
For example: int Var1 _attribute__ (section (".mem_data")); int Var2; This would place the Var1 in the specified memory section, while Var2 is still in the default memory region. The same method applies to functions.