wasm2lua icon indicating copy to clipboard operation
wasm2lua copied to clipboard

wasm2lua: converting WASM into Lua

Results 15 wasm2lua issues
Sort by recently updated
recently updated
newest added

Can you show us a demo on how to run #include int main() { puts("Hello World\n"); } ?

bug

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...

suggestion

Began work on an IR today. It is locked behind a compiler flag (`--useGraphIR`) to facilitate easy testing + continued development alongside the main branch. It currently does not work...

feature
optimisation

i.e. we roll our own optimised code that plays nice with our custom memory design e.g. (naiive memcpy example that's optimised for luajit) ```lua function __FUNCS__.memcpy(dest, src, len) local fastLen...

optimisation

I feel like improvements are possible here, but I only have some vague ideas at the moment. At the very least, I suspect it might be possible to flatten our...

optimisation
dependson:variableallocation

This way, jmpstreams can be used for longjmps too

feature
dependson:variableallocation

This way virtual registers are confined within a block and the LuaJIT's tracer heuristics can work better with inferring local variable lifespans

feature
optimisation
dependson:variableallocation

Currently the results of comparison operations are always converted to integers, then converted back to bools when testing a conditional branch. We should store the comparison results as bools, and...

optimisation

Currently memory types are tracked using a (hash)table. Performing a table lookup for every memory operation is probably not the best idea. Type ids only take up 2 bits of...

optimisation

This aborts a LuaJIT trace. Perhaps put a label at the end of a function where the return is performed there? (only affects loops with `while true do` wrapping it)

optimisation