wasm3 icon indicating copy to clipboard operation
wasm3 copied to clipboard

🚀 Optimize WASM tail calls

Open vshymanskyy opened this issue 5 years ago • 2 comments

https://github.com/WebAssembly/tail-call

Currently return_call (0x12) and return_call_indirect (0x13) are just aliases of call and call_indirect. For these operations, we could actually reuse the stack frame to optimize memory usage.

vshymanskyy avatar Nov 14 '19 16:11 vshymanskyy

This may be required for an adequate implementation of #8

vshymanskyy avatar Dec 12 '19 14:12 vshymanskyy

Test script is now prepared to run tests for this proposal:

./run-spec-test.py ./proposals/tail-call/*.json

vshymanskyy avatar Dec 30 '19 20:12 vshymanskyy