Message-ID: <04cc01c2cd19$b66d2d40$0600000a@broadpark.no> From: "Gisle Vanem" To: References: Subject: Re: Checking for stack overflow Date: Wed, 5 Feb 2003 14:23:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1123 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1123 Reply-To: djgpp-workers AT delorie DOT com "Esa A E Peuha" said: > Gcc apparently allows to define freely what instructions are used to > allocate space from the stack. Since we have a fixed stack size, it > would be good to check esp againt the stack limit every time it's > changed. Not by default IMHO (although many compiler do it by default). It would break lots of code that sets stack manually to some fixed block. But if it's easy to implement I'm all for it (option "-fcheck-stack" and accompanying "#pragma check_stack .. " and "__attribute__(..)"). Gisle V. Not what you think it is; http://www.nice-tits.org