Vijay- Can you post your code? -Bhooshan
>Hi Bhooshan and Ganesh, > > Well firstly the compiler should take care of the >arguments being passed to the functions .Since the >values passed to the function are stored in registers >,It should avoid modifying those registers . >I am sending only 1 value to the function which will >be stored in A4 on function call . Now in the >function after few instructions are executed A4s value >is changing y is that so. > > Also I am not using ne sort of optimizations... > > So what I am doing rt. now is as soon as i enter the >function i am storing the argument in another local >variable and getting the things work, which i suppose >is not the right way. > >So what shall I do to avoid this??? > >Thanx in advance > >Regards, >Vijay > > > >--- Bhooshan iyer wrote: > >--------------------------------- > > >Vijay- > > Turn of all optimizations(if any) before you >proceed on anyfurther debugging, -o3 has given few >sleepless nights to me! Good Luck > >-Bhooshan > > >Check the disassembly.. View the status of the >register that is assigned to those variables.. > >usually the arguments are passed as A4:A5, B4:B5, >A6:A7, B6:B7... so on respectively and >register pairs >are used only if reqd.. else data is passed through >the Even numbered >registers...Also give 2 cycle delay >before u check the status..i.e. check the status after >2 >instructions from the current one.... This may help >you... > > > > > Hello every 1, > > > > I am calling certain functions from main and also > > > passing few arguements to these functions. But the > > > values of these arguements are gettting changed as > > > soon as i enter the function . > > I increased the stack size but still it doesnt >work. > > I am using CCS 2.1. Is it the bug in CCS or whats >the > > pbm? > > > > Thanx in advance.... > > > > Regards, > > Vijay > > > > >--------------------------------- >Easiest Money Transfer to India . Send Money To 6000 >Indian Towns. Easiest Way To Send Money Home! > >_____________________________________ >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 >c...@yahoogroups.com > >To Post: Send an email to c...@yahoogroups.com > >To Leave: Send an email to >c...@yahoogroups.com > >Archives: http://www.yahoogroups.com/group/c6x > >Other Groups: http://www.dsprelated.com > > > > >--------------------------------- >Yahoo! Groups Links > > To > > > >__________________________________ > > > > >_____________________________________ >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 c...@yahoogroups.com > >To Post: Send an email to c...@yahoogroups.com > >To Leave: Send an email to c...@yahoogroups.com > >Archives: http://www.yahoogroups.com/group/c6x > >Other Groups: http://www.dsprelated.com > >Yahoo! Groups Links > ><*> To visit your group on the web, go to: > http://groups.yahoo.com/group/c6x/ > ><*> To unsubscribe from this group, send an email to: > c...@yahoogroups.com > ><*> > >Take a loan. Win great prizes! Handsome prizes to be won! Take a loan win TV, Fridge many more prizes ! |