Forum Discussion
Altera_Forum
Honored Contributor
8 years agorizwanfazal
Here's the basic info. Look in the the GCC compiler & GNU linker documentation for the proper syntax & usage. 1 - Declare the shared array in your "C" code with something alike: char Array[???] __attribute__ ((section ("MySharedBuffer"))); 2 - In the linker script file, define the memory address & range occupied by the shared memory and assign the section: MEMORY { SH_MEM (rwx) : ORIGIN = 0x????? , LENGTH= ??K; .... } SECTIONS { MySharedBuffer : { *(MySharedBuffer) } > SH_MEM; ... } Regards