Mail Archives: djgpp/1996/02/12/08:08:31
Xref: | news2.mv.net comp.os.msdos.djgpp:1000
|
From: | NIGEL HUGHES <ngh94 AT aber DOT ac DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Bugs with Version 2 beta 3
|
Date: | Mon, 12 Feb 1996 11:06:32 +0000
|
Organization: | Univeristy of Wales , Aberystwyth.
|
Lines: | 38
|
Message-ID: | <311F1F38.3540@aber.ac.uk>
|
NNTP-Posting-Host: | manuel.aber.ac.uk
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Dear All,
I know there is a newer version out there, but at the moment
that just crashes my code even more. At the moment I have some serious
problems with the compiler. Now what I would like you to tell me is,
does DJGPP have problems with large functions? I have one function,
and inside there is a switch() statement. Now some of the cases inside
that statement cause General Protection Faults. Now I would blame
it on my code if it was not for:
a) The code has been working for > 6 months
b) Why the hell would the line
AdjustPalette=1;
Causes a protection fault. (Adjust palette is a global I'm
affraid).
Now, the problem only occurs currently when I set -m486 and -O3.
However, it did do it on normal compilation and I had to cut out
a function call to get it to work again. So what could be upsetting the
compiler. I can think of two possibles,
1) It does not like large functions. Solution, I break it up,
slowing down my main game loop, and still worrying about the
thing falling over.
2) The switch statement is too large. Solution a break it up,
making the code (bad because it is already large) look
worse.
Does anybody know what I am doing to upset the compiler? I have a
problem that I cannot send source to people in general as it is
a commercial game.
Thanks for your time,
Nigel Hughes
- Raw text -