Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiler's heretic behaviour
#5
apenao Wrote:Well, I've just tried with optimization -O 2 and got the same result. But with optimization -O 3 it compiles and the result is OK.
At first sight, it seems the compiler is getting confused with an ASM data block not being isolated from the main execution code. So I enclosed it between SUB FASTCALL xxx and END SUB, and it worked. Also added a fake call Gentlecillo() to avoid -O3 to remove this sub.
Code:
SUB FASTCALL Gentlecillo
gentlecillo:
ASM
; ASM source file created by SevenuP v1.20
; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain
...
END SUB
Gentlecillo() ' Fake Call
Also did the same in file sprite:
Code:
SUB FASTCALL eSprite
esprite:
ASM
xp: defb 0
yp: defb 0
gfxdir: defw 0
[...]
END SUB
eSprite() ' Fake Call, never executed
Anyway, we need to investigate further to discard a new compiler bug.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)