Recursion limits are set by the gcc compiler itself, and I don't know what they default to.
You can change the setting manually, by going into options, Compiler Settings, and editing that line for C++ Linker. Add something similar to:
--stack,4194304
The above should increase the stack to 4MB in size, which from my testing is enough to run 100 recursions without any issues on my PC.
>>Every crash of this program increases the IDE RAM usage.
As for this, I just can't see how that's possible. The programs aren't linked. Your source code is compiled and then we simply shell out to that compiled version and run it -- it has no impact on the IDE whatsoever.
Any chance that you have a stray $DEBUG statement going on there somewhere? That might could explain the issue, as debug DOES link the two programs together via TCP/IP so you can watch the variable values and such as the program is running.
You can change the setting manually, by going into options, Compiler Settings, and editing that line for C++ Linker. Add something similar to:
--stack,4194304
The above should increase the stack to 4MB in size, which from my testing is enough to run 100 recursions without any issues on my PC.
>>Every crash of this program increases the IDE RAM usage.
As for this, I just can't see how that's possible. The programs aren't linked. Your source code is compiled and then we simply shell out to that compiled version and run it -- it has no impact on the IDE whatsoever.
Any chance that you have a stray $DEBUG statement going on there somewhere? That might could explain the issue, as debug DOES link the two programs together via TCP/IP so you can watch the variable values and such as the program is running.