We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello I am using ARM7 LPC2148. in the program I have to use recursive function. so there are lots of chances of stack overflow. how to avoid this??
I just want to avoid stack overflow while working with recursive functions........
So you intend to fool the compiler by manipulating the stack pointer yourself? What do you think do you have a compiler for, then? To write correct machine code that complies with the computation model/standards you use - of course! In other words: Don't do it.