Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith) Newsgroups: scea.yaroze.programming.gnu_compiler Subject: Re: HELP! Stack fault??? Date: Tue, 26 Aug 1997 10:17:18 GMT Organization: SN Systems Lines: 48 Message-ID: <5tua45$3qt8@chuka.playstation.co.uk> References: <3401D017.41C67EA6@eecs.uic.edu> Reply-To: gil@snsys.com NNTP-Posting-Host: gil.snsys.com X-Newsreader: Forte Free Agent 1.0.82 Greggerzowski wrote: >I have been successfully writing and compiling my code for quite some >time now, but all of a sudden, I've gotten to the point where if I put >in anymore code, I get the following error when trying to compile... >Stack Fault at eip=b0463 (or something like that) >eax=00000d68 ebx=000034cc and so on... >Call frame traceback EIPS: >...and then a bunch of memory address. >Could someone please tell me whats going on, and maybe how to solve the >problem? Thanks. The compiler has bust its stack limit. You're probably compiling something reasonably complicated with -O2, or just a lot of code which makes it run out of stack. What you need to do is edit your copy of cc1.exe using a program you can get from www.delorie.com called stubedit - the DJGPP v1 version. Or I can email you a copy if you have trouble finding it. Find your copy of cc1.exe and type 'stubedit cc1.exe'. You should get a bunch of questions which run broadly as follows: Name of extender program? Version of GO32 required? Min stack space? Max virtual memory? (Something about a filename)? Enable wildcards? Conventional memory? The third question shows the current stack space allocation and you need to increase it. Normally this is about 256K so increase it to something much more in line with PC capabilities, say 4M (you can type 4M and it'll understand it as four megabytes). Press return to accept the defaults for all the other questions. Run stubedit again to make sure your change was understood and accepted, and then you should be okay for stack space. (I'm moderately surprised that Sony released this with the default stack space; they know the professional developers used to get this error a lot. If there's another release of the NY tools they ought to patch it upwards.) Gil Jaysmith SN Systems Software Ltd, makers of Psy-Q... http://www.snsys.com Disclaimer: What I say when I post here represents me, not my employers.