Hi guys,
I have a question regarding how to use linker script to place specific data in the specific memory. Lets make long story short. Assume I have four arrays: a[100], b[100], c[1000], d[1000] in the main.c. I wanna put the first two array a[100], b[100] into local memory, DSOCM, while the others into the external DDR. How can I do this by linker script? Any input would be greatly appreciated!
I just found a webpage briefly touches this issue from xilinx answer database. See the solution2, It says"Another method is to keep any variables whose locations you want to control in a separate file (this example will use "special.c")." I just wondered how can I keep those variables in a separate file .c?
Thanks in advance,
Yao