Repository navigation
Conversation
e9b68c6 to
7d0048e
Compare
|
Could you add the following to It'll also require a new |
|
Wait, what does that code do? Run wasm-as on stuff? It's not ready yet! :) |
|
Not even mildly ready to fail on most-but-not-quite-all tests? :p |
|
No, it aborts on "hello world" :) I need to do some other refactoring. This pull is mainly to finish getting it building, as I don't want to have a long-term side branch. |
|
Ah OK, lgtm then :) |
|
Just out of curiosity, the llvm backend currently emits a .s file in a format that is not vaguely like wast. This tools is describe as 'Assemble a .wast (WebAssembly text format) into a .wasm (WebAssembly binary format)' and if so then the wasm-as naming looks confusing. Is it planned that the current .s format becomes the text format and superseded wast or might there be a separate .s format? |
There was a problem hiding this comment.
"Link and assemble a .s into a .wasm"
It consumes a
The The plans for text format are still very up in the air, and the current s-expression format isn't agreed on either. |
|
Actually no, the text as it stands is correct. This tool assembles a .wast (s-expression wasm text format, and eventually the official wasm text format whatever that will be) into a .wasm (binary wasm format, in current v8 proposal). In other words:
These are parallel to Other tools convert to/from external or unofficial formats, like
A sad point of confusion is that |
Finish initial pass on wasm-binary, and add wasm-as tool #13
|
@jfbastien I named it that before .wast existed :) |
General idea is
wasm-asis a parallel tollvm-as, and so forth. But no strong feelings about names, and perhaps anyhow all tools should be able to load both binary and text eventually.This just adds the binary writer, and checks that it compiles.