Yet another optimized bug - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: Yet another optimized bug (/showthread.php?tid=707) |
Yet another optimized bug - einar - 12-17-2015 Sample program test.bas: Code: GOTO 10 Compiling it using -O2 works correctly and produces the following code for routine proc2: Code: _proc2: Compiling it using -O3 produces error "Relative jump out of range" and produces the following code for routine proc2: Code: _proc2: Again, the optimizer is supposed to try to optimize its own generated code only, not someone else's assembly code! |