BACKGROUND:
I am working with the code composer studio CCs_ver4.0 simulator on window 7 OS for the C55x revision 3 core.
I have some C code which declares structures. Also memory is allocated to these structure variables using malloc.
QUESTION:
Now say there is a structure declared in C code:
typedef
struct st1{int dummy; int weights[10]; int lms_buffer[20];
}lms_internal;
Within a main.c file I am allocating memory as: p_int = (int *)malloc(sizeof(lms_internal));
Now if i want to put structure member weights in SARAM whereas structure member lms_buffer in DARAM then
how can I specify this in the linker command file ? In what way can I have two structure member arrays in totally different sections of memory ?
Pragma cannot be used according to me since this is for variables defined at the file level.
Thanks,
AV.