How to increase stack size?

Hi All,

This problem is in conjunction with my previous query “Memory issue with RCM 3200 in Dynamic C 8.61” posted recently.

Is it possible at all to increase stack memory size in Dynamic C? If yes what is the approach? I’m using RCM 3200 and Dynamic C 8.61.

I tried by increasing DEFAULTSTACKSIZE macro(in Program.Lib) from 0x1000 to 0x1001, 0x1002,etc.
Outcome: Successful compilation but Run time error saying “Stack Allocation failed(Out of free stack or size requested too large)”.

Anybody having solution for this please respond and help me.

With gratitude in advance,
Mayoor

[QUOTE=Mayoor;972]Hi All,

This problem is in conjunction with my previous query “Memory issue with RCM 3200 in Dynamic C 8.61” posted recently.

Is it possible at all to increase stack memory size in Dynamic C? If yes what is the approach? I’m using RCM 3200 and Dynamic C 8.61.

I tried by increasing DEFAULTSTACKSIZE macro(in Program.Lib) from 0x1000 to 0x1001, 0x1002,etc.
Outcome: Successful compilation but Run time error saying “Stack Allocation failed(Out of free stack or size requested too large)”.

Anybody having solution for this please respond and help me.

With gratitude in advance,
Mayoor[/quote]

Why would you want such a big stack anyway? If your functions are declaring buffers / arrays you may need to rethink your logic and make them static or dynamically allocate & deallocate memory. Good luck!

I think so, it is not necessary to do this.