WASM is not quite a stack machine

(purplesyringa.moe)

24 points | by signa11 4 hours ago

1 comments

  • stevefan1999 1 hour ago
    I'm trying to implement a WASM to C compiler, and because of that not-quite-so-stack behavior, I can actually guarantee that it will always build an expression and I don't have to discard or reset stack value! Everything stays within that function, which is very neat, and I think it is one of the reason WAT, the textual format is so neat, that you can represent it with a S-Expression.