FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2007, 11:41 AM
salaria
Guest
 
Posts: n/a
Default DM642 Memory Section help

hi,

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

1. If i compile the following code, to which section will the compile
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

Reply With Quote
  #2 (permalink)  
Old 02-04-2007, 01:03 AM
Brad Griffis
Guest
 
Posts: n/a
Default Re: DM642 Memory Section help

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/dspsupp...tName=spru187n

Brad
Reply With Quote
  #3 (permalink)  
Old 02-04-2007, 09:47 AM
salaria
Guest
 
Posts: n/a
Default Re: DM642 Memory Section help

>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/dspsupp...tName=spru187n
>
>Brad
>


Thanks Brad



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Functions don't work in declarations section davehigton VHDL 2 12-24-2008 10:07 AM
Running out of Memory on Heap using DM642 Simulator Jay DSP 3 01-26-2007 01:13 PM
Digitally mimicing an RLC filter section Richard Owlett DSP 16 04-11-2006 05:34 AM
create holes (reserve space) in section chc DSP 0 02-20-2004 03:49 AM
DSP Section UNION Run address chc DSP 0 02-18-2004 03:57 AM


All times are GMT +1. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved