adjusting stack size of executable compiled by gcc
tm_gccmail@kloo.net
tm_gccmail@kloo.net
Mon Sep 27 19:15:00 GMT 2004
On Mon, 27 Sep 2004, tony vong wrote:
> Hi,
>
> I am writing a simulator using c++. I am suspecting my
> program is hitting some kind of stack limit because:
> 1. it crashes at some point that does not make sense
> 2. when I add some 'unused' variable to some class,
> the
> crash point change. Since those newly added variables
> are NEVER used, the crash point should be the same.
>
> Therefore, I suspect my program is hitting some sort
> of stack limit. I am using gcc 3.4.1 on redhat 9.
>
> I WOULD LIKE TO KNOW:
>
> 1. how to find out the stack size of my executable
> 2. how do I increase the stack size when I compiled it
> with gcc ???
>
> thank you.
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
This is the wrong list for asking such questions.
This list is for the discussion of gcc internals.
You are asking a question about the stack size for an operating system,
which needs to be asked on an OPERATING SYSTEM mailing list.
Toshi
More information about the Gcc
mailing list