Mail Archives: djgpp/1996/06/06/15:37:28
| Xref: | news2.mv.net comp.os.msdos.djgpp:4676
|
| From: | a920101 AT zipi DOT fi DOT upm DOT es
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Not optimizing=Crash???
|
| Date: | 6 Jun 96 10:46:56 +0200
|
| Organization: | Facultad de Informatica - (UPM)
|
| Lines: | 20
|
| Message-ID: | <1996Jun6.104656@zipi.fi.upm.es>
|
| NNTP-Posting-Host: | zipi.fi.upm.es
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi everybody!
I am programming a game with DJGPP 2.0, and I'm finding it is a realy
*great* tool. I have currently written 2500+ lines in C++/Asm, and had no
problem (except for my own bugs ;). But now I am facing a strange behaviour
with my program: If I compile it *without* optimizations (-m486 -O3), it
crashes with a page fault after exiting the game (I mean: you quit playing,
and then it dumps out a GPF, no problem *while* playing). I find no problem
when compiling with -m486 -O3, anyway.
I've debugged the generated code, and I've found that the problem is GCC
not passing the correct arguments to some functions. I call the function
with the correct parameter (made sure of this), but it gets a wild one!
I stopped using the nearptr feature, as this is dangerous, but the problem
didn't went away...any clue???
Yes, I am using the last version of CWSDPMI and those things...
Any help would be appreciated.
Thanks in advance.
- Raw text -