Forums

DM642 Memory Section help

Started by salaria February 3, 2007
hi,

I have just started using DM642 evm. i am having a few problems in the
memory section. there are a lot of sections .bss, .stask, .sysmen
etc.etc.

1. If i compile the following code, to which section will the compiler
allocate memory for the static/dynamic variables?(at compile/run time)

void main (void)
{
int i;          
int j = 6;         //is it .bss??

char a[100];           // is it .stack??
char b[100][100];
char *c; c = (char *)malloc(100);   //is it .sysmem

}

is there a TI pdf which would give more information on this?

Thanks and Regards
APS

salaria wrote:
> hi, > > I have just started using DM642 evm. i am having a few problems in the > memory section. there are a lot of sections .bss, .stask, .sysmen > etc.etc. > > 1. If i compile the following code, to which section will the compiler > allocate memory for the static/dynamic variables?(at compile/run time) > > void main (void) > { > int i; > int j = 6; //is it .bss?? > > char a[100]; // is it .stack?? > char b[100][100]; > char *c; c = (char *)malloc(100); //is it .sysmem > > } > > is there a TI pdf which would give more information on this? > > Thanks and Regards > APS >
See Table 5-1 and 5-2 on page 116: http://focus.ti.com/dsp/docs/dspsupporttechdocsc.tsp?sectionId=3&tabId=409&familyId=477&abstractName=spru187n Brad
>salaria wrote: >> hi, >> >> I have just started using DM642 evm. i am having a few problems in the >> memory section. there are a lot of sections .bss, .stask, .sysmen >> etc.etc. >> >> 1. If i compile the following code, to which section will the compiler >> allocate memory for the static/dynamic variables?(at compile/run time) >> >> void main (void) >> { >> int i; >> int j = 6; //is it .bss?? >> >> char a[100]; // is it .stack?? >> char b[100][100]; >> char *c; c = (char *)malloc(100); //is it .sysmem >> >> } >> >> is there a TI pdf which would give more information on this? >> >> Thanks and Regards >> APS >> > >See Table 5-1 and 5-2 on page 116: > >http://focus.ti.com/dsp/docs/dspsupporttechdocsc.tsp?sectionId=3&tabId=409&familyId=477&abstractName=spru187n > >Brad >
Thanks Brad