Does a program stack truly overflow?
Won't the processor cause a TRAP to the operating system if the stack size limit is reached(thus preventing a stackoverflow :P) I believe Windows does have a stack that grows when you reach the end. In the Visual Studio compiler the code responsible for this is in the chkstk.obj module. Since this code is open-source I can post it here: ;*** ;_chkstk - check stack upon procedure entry ; ;Purpose: ; Provide stack checking on procedure entry. Method is to simply probe ; each page of memory required for the stack in descending order. This ; causes the necessary pages of memory to be allocated via