Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimizer bug (*solved*)
#1
Try running this program:

Code:
sub x2()
    DIM a AS UBYTE

    LET a = 129
    IF (a >= 224) OR (a <= 32) THEN
        PRINT "Ops"
    ELSE
        PRINT "OK"
    END IF
end sub

x2()

If compiled using "-O3" it will print "Ops", otherwise it will print "OK".

Tested using ZX BASIC version 1.3.0s1022.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)