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??
The price you can pay for recursion is heavy stack use.
If you REALLY need to use recursion, then you should consider increasing the size of the stack accordingly.