Hi all,
> I tried to compile BIOSDemo with DJGPP and it works ok,
> while when I compile it with GCC 3.x in Linux, when the demo finishes
> the message about SP1!=SP2 is displayed. So I think there's an error
> in GCC 3.x which produces a buggy code.
once again: I don't think this is a bug. In my opinion, it is only an
optimization. It seems to me that gcc 3.* likes to play strange games
with the stack, and we cannot assume ESP to be the same at the beginning
and at the end of the program...
If you want to do the check for debugging purpose, you will have to
compile with -O0 (some modifications to the cvs head are needed to
compile with -O0, and I'll commit them in the next days)...
Please, someone correct me if I am wrong.
Luca
--
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
N O W A R ! ! !
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Vai contro corrente! Inizia a mantenerti in forma da Natale: Oliviero Città dello Sport!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1074&d=1-6
|