There is any diferences, some thing I must take care when Im programming on DSP like heap size, stack size. I have an example from code composer, which implements a voicer loop-back aplication. this examples come together with the ccs and I'm trying to put a Coder and a Decoder in this examples, but when I make a function call to my coder it doesnt work anymore. My coder is working in another application together with the decoder but when I put it together with my example it doesnt work. It is a big program and I had some problem before with the stack size.When I executed a printf(), my program stopped, but when I increased the stack size it come back to work. Anyone could tell me why? Thanks for all. __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ |
Diferences between DSP program and pc program
Started by ●January 14, 2005
Reply by ●January 14, 20052005-01-14
the heap and stack are not synonomous. you could be pushing more data onto the stack than the stack can handle. there is no complier check for this. At Friday, 14 January 2005, Ademir Zanetti <. br> wrote: >There is any diferences, some thing I must take care >when Im programming on DSP like heap size, stack >size. > >I have an example from code composer, which implements >a voicer loop-back aplication. this examples come >together with the ccs and I'm trying to put a Coder >and a Decoder in this examples, but when I make a >function call to my coder it doesnt work anymore. > >My coder is working in another application together >with the decoder but when I put it together with my >example it doesnt work. It is a big program and I had >some problem before with the stack size.When I >executed a printf(), my program stopped, but when I >increased the stack size it come back to work. Anyone >could tell me why? > >Thanks for all. > >__________________________________________________ >Converse com seus amigos em tempo real com o Yahoo! Messenger >http://br.download.yahoo.com/messenger/ > > o To ---------------------------------- Zero Crossings, Inc. -- Embedded and Digital Signal Processing Systems http://www.zerocrossings.com/ |
Reply by ●January 14, 20052005-01-14
Ademir- > Harland Christofferson wrote: > > the heap and stack are not synonomous. > > you could be pushing more data onto the stack than the stack can > handle. there is no complier check for this. And there can be cases where stack over-usage does not necessarily show up as a problem, depending on what it overwrites. If it overwrites a heap, then it depends on whether you are using that heap or not, how much, and what code is using it. It can be a difficult thing to debug. -Jeff > At Friday, 14 January 2005, Ademir Zanetti <. > br> wrote: > > >There is any diferences, some thing I must take care > >when Im programming on DSP like heap size, stack > >size. > > > >I have an example from code composer, which implements > >a voicer loop-back aplication. this examples come > >together with the ccs and I'm trying to put a Coder > >and a Decoder in this examples, but when I make a > >function call to my coder it doesnt work anymore. > > > >My coder is working in another application together > >with the decoder but when I put it together with my > >example it doesnt work. It is a big program and I had > >some problem before with the stack size.When I > >executed a printf(), my program stopped, but when I > >increased the stack size it come back to work. Anyone > >could tell me why? > > > >Thanks for all. |