Question:
How to use SHARED_MEMORY{} command between SHARC cores in Griffin?
-------------------------------------------------------------------------------------------------------------
Answer:
SHARED_MEMORY{} :
- The SHARED_MEMORY{} command creates an executable output that maps code and data into a memory space that is shared by multiple processors. The output is given the extension .sm for shared memory.
Syntax:

- OUTPUT() - Specifies the output file name (file_name.sm) of the shared memory executable (.sm). An OUTPUT() command in a SHARED_MEMORY{} command must appear before the SECTIONS{} command in that scope.
- SECTIONS() - Defines sections for placement within the shared memory executable (.sm).
Note: You should map your code/data in to a SHARC specific area (memory region).
One point to be aware of is that your changes to the LDF will be overwritten if the LDF is re-generated.
Attached zip file contains the simple example code for using SHARED_MEMORY concept to share a variable between SHARC cores.