QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Stack overflow |
Ref. No. |
QNX.000003047 |
Category(ies) |
Development |
Issue |
While compiling, following error occurs: Stack Overflow.
We are using the 32 bit flat model for compiling with default stack size of 32K. What is the source of the problem and how can we resolve that?
|
Solution |
When you compile are you using the -mf argument for the cc command? By default the small memory model is selected. Have you tried to increase the stack size with the -N option? It defines the size of the stack you want in Kb, i.e. -N 64 would be a 64k stack. |
|