This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to overcome stack overflow???

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??

Parents
  • 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.

Reply
  • 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.

Children
No data