so I'd need to compile lua16.exe for linux.
Maybe you don't realize that it will be rather difficult. First you'll have to changer the headers,... to work for linux, and SECOND, you'll have to change a lot of things everywhere in the sources to work perfectly as a 16 bit dos executable.
Lua16 (Luac) is a 16 dos executable (that's why we use dosbox on linux and win 64) because AFX has a 16 bit dos system. Then lua16 produce a lua precompiled code that would be the same it it was precompiled on the AFX.
To allow the fx9860 to work with this code, I coded a special layer to load the chunk.
I could have choosen to use an other format for the precompiled lua code and do a layer on AFX, but I kept it because the produced files are smaller.
but I want to actually *use* LuaFX from linux
Well, use dosbox to execute lua16 and use a text editor.
About the improvement, you could speed up the interpretation by removing the speed reducers I put to approximate the same speed than on AFX. you could add new features easily. But all these changes will break the compatibility with AFX. It wouldn't be luaFX.
If you decide to do an other lua interpreter for fx9860, it raises several questions:
- Will you keep the sprite's format (Today we use an AFX tool to generate the sprites)
- Will you take the last lua version
- Will you write a new precompiler to replace lua16