-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code generation without depending on goto
s
#29
Comments
It's been a while since I've last worked on this but if memory serves right, gotos were used because there is a limit to how far a lua vm can do a jump: wasm2lua uses these goto trampolines to split very large jump instructions into multiple smaller gotos. It is theoretically possible to work around this by rewriting the compiler (and I recall having different ideas on how to do this, like by wrapping each simple statement block into their own stateless functions) Another use for gotos in wasm2lua is for I'm glad that you find this silly project useful, however I am no longer insane enough to continue to work on this project (but you are more than welcome to do whatever you want, so long as the license permits). And yes, WASI syscalls need to be self-implemented (a la https://github.com/SwadicalRag/wasm2lua/blob/master/resources/wasilib.lua ) |
goto
s
It is very unfortunate world of warcraft uses Lua 5.1 which does not provide goto.
Although bit is provided, it does not provide all the functions that bitops provide which means they have to be emulated with lua apis itself.
BTW, how can I deal with wasi syscalls? should I implement those syscalls by myself?
The text was updated successfully, but these errors were encountered: