Forum Discussion
Altera_Forum
Honored Contributor
10 years agomalloc problem
Hello I am using Quarts and Nios 9.1 versions. In my board I have external (altmemddr) and on-chip (inside Cyclone III) memory. In the system library properties all memory (including rwdata...
Altera_Forum
Honored Contributor
10 years agoThe increase in code size is likely due to the .cinit to initialize the data.
Instead of doing it this way, just do it with a pointer and a linker region: modify your linker script to create a region to hold your "CisSheetQueue" and then:
unsigned char *pCisSheetQueue = (unsigned char *)the_address_of_the_region_you_just_created;
If I recall, you can manage the linker script regions through the BSP editor.