DevC ++ stack limit (Mingw)

Is it possible to set a stack limit in DevC ++? Basically, the same as "ulimit -s" will do on linux.

+1


a source to share


1 answer


Try this option ld

(linker):

--stack

reserve
--stack

reserve, commit
   Specify the number of bytes of memory to reserve (and optionally commit) that will be used as the stack for this program. 2Mb is reserved by default, 4K fixed. [This parameter is specific to the target port of the i386 PE linker]



http://sourceware.org/binutils/docs/ld/Options.html#Options

+1


a source







All Articles