In the embedded application we have a little amount of stack memory as compare to the desktop application. So we have to work on embedded application very carefully either we can face the stack overflow issues that can be a cause of the application crash.
Here, I have mentioned some causes of unwanted use of the stack.
- Improper use of the recursive function.
- Passing to many arguments in the function.
- Passing a structure directly into a function.
- Nested function calls.
- Creating a huge size local array.