Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIf you create an uninitialized static array, it will be put in the .bss section (I guess it is what you call the "read/write" data memory).
If you create an initialized static array, it will be put in the .data section. If you create it as a local variable in a function it will be in the stack memory. If you allocate it with malloc() (C) or new (C++) it will go in the heap memory.