This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
stack probing on linux
- To: help-gcc at gnu dot org
- Subject: stack probing on linux
- From: Hong Zhang <hzhang at eng dot sun dot com>
- Date: 10 Nov 1999 00:39:16 GMT
- Newsgroups: gnu.gcc.help
- Organization: Sun Microsystems Inc., Mountain View, CA
- Xref: wodc7nx0 gnu.gcc.help:1749
Recently I tried a simple program as follows:
void foo() {
int buf[10000];
printf("Hello");
}
When this program is compiled on Linux, the gcc
does not generate stack probing (banging) code.
In case the program run out of stack, this code
will destroy the memory space (possible another
stack space) that precedes the current stack
(assuming the stack is growing downwars).
Does anyone know why the gcc does not generate
stack probing code on Linux. Thanks in advance.
Hong Zhang