Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stack Bug in ZXB 1.2.5-r1489 ?
#7
apenao Wrote:I've downloaded the new version (1.2.5-r1489f) and tried to compile my last crap game. It compiled OK with version 1.2.5-r1489 and no optimization.

Now, with no optimization I get this message (and it compiles OK):
Code:
> Executing: C:\Archivos de programa\ConTEXT\ConExec.exe -i "C:\Archivos de programa\Boriel Tm\ZX Basic Compiler\zxb.exe" -T -B -a  -S 28000 clash3.bas

memcopy.bas:29: warning: SUB 'memcopy' declared as FASTCALL with 3 parameters
> Execution finished.

With optimization -O 2, or -O 3 I get this message (and it doesn't compile):

Code:
Traceback (most recent call last):
  File "zxb.py", line 244, in <module>
  File "zxb.py", line 209, in main
  File "optimizer.pyc", line 2021, in optimize
  File "optimizer.pyc", line 1316, in update_goes_and_comes
IndexError: list index out of range
> Execution finished.

It's probably my code (I'm so proud of its crapyness...) but maybe the last lines of the optimization message tells you something.
If your code were not ok, the compiler should just end with a compiler error, not with an internal *crash*. This is a compiler bug. :?
I need your code to debug this. If you don't want to publish it here (for whatever reason, contact with me with a private message). Another option is to shorten the code to minimum portion which produces this error.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)