This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

stack probing on linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]