[ODE] GCC Stack Size, stepfast disabling bodies, and SIMD idea

Adam D. Moss aspirin at ntlworld.com
Fri Apr 4 04:27:02 2003


david@csworkbench.com wrote:
> Does anyone know how big of a stack GCC allocates....

Depends on the architecture, OS... and the linker!

 > and how to change
> that?  Reading through the man pages, -mstack-size doesn't seem to be an
> option for i386 processors. 

Using a GNU ld you can use for example --stack 128000000 to
define a 128MB runtime stack for the resulting executable.  I
don't know which architectures that's good for -- a very cursory
look at the man page seems to indicate it's universal...

-- 
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
"Half of the harm that is done in this world is due to people who
want to feel important.  They don't mean to do harm.  But the harm
does not interest them." -- T. S. Eliot