News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Stack Size

Started by mconflict, March 21, 2012, 05:57:45 PM

Previous topic - Next topic

mconflict

How do I increase the stack size...?

I tryed  -Wl,--stack=50000000 in the other option linker thingy... didn't work,

I tryed in the compiler options it doesn't work...

I have to get 200'000 words read in a file and it crashed at the 7700th

Radek

Allocate instead of using local variables.

mconflict

Quote from: Radek on March 21, 2012, 06:15:18 PM
Allocate instead of using local variables.

What do you mean?

Sorry I'm a beginner in C programming.

frithjofh

Hi,

what he is telling you is that such amount of variables you should allocate on the heap with "malloc" in the case of C and "new" in the case of C++.

But this is stuff you should look up in a programming book, it does not really belong on this forum. I bet the administrators will lock this topic any minute now...

Good luck reading  ;)
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Jenna

Quote from: nausea on March 21, 2012, 06:27:26 PM
But this is stuff you should look up in a programming book, it does not really belong on this forum. I bet the administrators will lock this topic any minute now...

Correct and locked !