0

I am executing a c++ program with large number of recursion function calls. When executing normally it gives stack overflow on runtime. So I am trying to find a way to increase the stack size. I found two methods: first is running but the second if doesn't become true. second method is using the following command while compiling : g++ -std=c++11 -Wl --stack <stack size> file.c -o file. This command gives error that is not a valid file. So what is the way to increase the stack size. And why are the methods I used not working? And for those asking for code, the code is irrelevant. Its just recursive quicksort with large array of 100k ints.

Shantanu Shinde
  • 932
  • 3
  • 23
  • 48

0 Answers0