I previously developed an application that did not use DSP/BIOS. I now have the need to add some memory management features to appease some code I'm adding that requires a heap. Is DSP/BIOS the best way to do this or are there some other options? Thanks, Aurio |
|
Memory management on the 6211
Started by ●July 16, 2002
Reply by ●July 17, 20022002-07-17
Aurio- > I previously developed an application that did not use DSP/BIOS. I > now have the need to add some memory management features to appease > some code I'm adding that requires a heap. Is DSP/BIOS the best way > to do this or are there some other options? CCS C6000 basic memory management library calls (malloc, mfree, etc) use the heap but do not require DSP/BIOS. You have to make sure the heap size is large enough to support your memory usage; issues about where to place the heap in memory are important. Jeff Brower DSP sw/hw engineer Signalogic |
Reply by ●July 17, 20022002-07-17
The standard C runtime has a simple heap builtin. (malloc, free etc). /Regards, P Ligander auriosectio wrote: > I previously developed an application that did not use DSP/BIOS. I > now have the need to add some memory management features to appease > some code I'm adding that requires a heap. Is DSP/BIOS the best way > to do this or are there some other options? > > Thanks, > Aurio > > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > > To Post: Send an email to > > To Leave: Send an email to > > Archives: http://www.yahoogroups.com/group/c6x > > Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ |
Reply by ●July 21, 20022002-07-21
Himachandra Chebrolu- > could you explain about heap ? Heap is simply a data memory area used by C calls such as malloc and free. If the heap is not defined or too small, then at some point a malloc call may fail -- whether the program can tolerate this or not is up to the programmer. Note that the heap is shown in .map files created by CCS as the ".sysmem" section. Heap definition and usage is independent of DSP/BIOS. I'm not sure if DSP/BIOS calls use the heap, but I would not be surprised if so. Jeff Brower DSP sw/hw engineer Signalogic > --- Jeff Brower <> wrote: > > Aurio- > > > > > I previously developed an application that did not > > use DSP/BIOS. I > > > now have the need to add some memory management > > features to appease > > > some code I'm adding that requires a heap. Is > > DSP/BIOS the best way > > > to do this or are there some other options? > > > > CCS C6000 basic memory management library calls > > (malloc, mfree, etc) use the heap but > > do not require DSP/BIOS. You have to make sure the > > heap size is large enough to > > support your memory usage; issues about where to > > place the heap in memory are > > important. > > > > Jeff Brower > > DSP sw/hw engineer > > Signalogic |