help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 3.3.4 setting Stack and Heap


From: Paul Pluzhnikov
Subject: Re: GCC 3.3.4 setting Stack and Heap
Date: 26 Nov 2004 15:50:04 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

Dave Dons <address@hidden> writes:

> Help appreciated setting stack (and heap) in GCC Linux:

On Linux, the kernel controls max size of your stack and heap via
resource limits (man getrlimit, man ulimit). 

There is simply no place in the ELF executable to record what your
*desired* limits are, but if there was a place, the kernel would
have disregarded this info anyway (if it were not so, you could do a
trivial DOS attack by simply compiling an exe with a huge heap/stack
allowance).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]