I use recursive function qsort. How can increase the size of the stack? I use Cosmic compiler with Stack Long (modsl0) memory model. Regards, krzysztof.skoczek
Posted on May 17, 2011 at 15:05Hello, there's no need to increase the stack size, as this is not a parameter you can control (at least directly) in your source files or application settings. In a typical stm8 application, the stack is initialized at the highest ram address and then grows backwards: if it grows too much, one of the two things below will happen, both leading to unpredictable system behaviour (crash!): - the stack will overwrite some other memory area (probably global variables) - the stack pointer will wrap around to its original value (hardware limitation) Regards, Luca (Cosmic)