The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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: 1 Guest(s)