lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Olivier.

Thanks for your suggestion.

In fact, disabling register optimizations in PureC solved the problem.

Attached is the screenshot. I've yet to test the binary but for some simple tests it's exactly as fast as Lua503 :)
Cool! Thank you guys for making it possible to compile Lua with 22 years old C compiler! The binary is here: http://tinyurl.com/q939pge

Cheers,
W.


2015-01-06 10:53 GMT+01:00 Oliver Kroth <oliver.kroth@nec-i.de>:
Hi Wiktor,

print() doesn't work when called from for loop (and it's possibly just one manifestation of this issue). While loop seems to work fine.

you may like to test if it is the print() inside the for loop that does not work, or - more likely - the for loop itself.
It may also be worth to recompile with no optimisation - just in case that the FPGA emulation of the MC68k has some issues with them.
Could be that the optimised code fails to properly process the FORPREP or FORLOOP opcode.

--
Oliver




--
Talkers are no good doers.

Attachment: lua_530.png
Description: PNG image