Extend call stack to disk in C++?

Viewed 359

When it comes to massively-recursive method calls, the call-stack size has to be extended by modifying the appropriate compiler parameters in order to avoid stack-overflow.

Let's consider writing a portable application whose layout is simple enough so that its users need only possess minimal technical knowledge, so manual virtual memory configuration is out of question.

Running massively-recursive methods (behind the scenes obviously) may result in the call-stack limit being surpassed, especially if the machine the application is running on is limited memory-wise.

Enough chit-chat: In C++ is it possible to manually extend the call-stack to disk in case memory is (almost) full?

2 Answers
Related