03-15-2011, 10:54 PM
Here's the latest version (seems to be 573? Odd numbering!)
This latest version improves on the last, but not in the BM8 trial. It also fails to compile the fSin function with the error:
Traceback (most recent call last):
File "zxb.py", line 312, in <module>
File "zxb.py", line 265, in main
File "backend\__init__.pyc", line 2386, in emmit
File "backend\__init__.pyc", line 926, in _cast
NameError: global name '_fixed_oper' is not defined
More trial runs a few versions down the road!
This latest version improves on the last, but not in the BM8 trial. It also fails to compile the fSin function with the error:
Traceback (most recent call last):
File "zxb.py", line 312, in <module>
File "zxb.py", line 265, in main
File "backend\__init__.pyc", line 2386, in emmit
File "backend\__init__.pyc", line 926, in _cast
NameError: global name '_fixed_oper' is not defined
Code:
BM1 BM2 BM3 BM4 BM5 BM6 BM7 BM8
Sinclair 4.46 8.46 21.56 19.82 25.34 60.82 87.44 23.30
TOBOS 0.58 0.82 2.02 1.76 2.34 6.68 8.72 0.746
Hisoft Basic
Integer Optimized 0.026 0.042 0.67 0.08 0.088 0.334 0.50 10.76
Boriel's ZX BASIC 0.038 0.032 0.30 0.15 0.16 0.328 2.20 24.0
ZX Basic 1.26 -O3 2.12 20.78
ZX Basic 1.26-r1603 -O3 0.94 20.78 (17.14 with fSin)
ZX Basic 1.2.8-r2153 -O3 1.36 29.06 (24.18 with fSin)
ZX Basic 1.2.8-r573 -O3 1.32 29.06 (fails to compile with fSin)
More trial runs a few versions down the road!