| ▲ | kg 4 hours ago | ||||||||||||||||
The lack of a dup opcode in Wasm as mentioned in the post is quite annoying when trying to generate compact code. I wish something like it had made it into the spec. | |||||||||||||||||
| ▲ | thomasmg 4 hours ago | parent [-] | ||||||||||||||||
You could use "local.tee". It is kind of is "store" + "duplicate". | |||||||||||||||||
| |||||||||||||||||