5 ms·
I'm the author, if anyone has specific questions :)
by Aardappel 6y ago
I'm the author, if anyone has specific questions :)
- 6nf 6y agoI notice that your code supports the 'name' custom section as expected, and furthermore you support a few other custom sections too - 'dylink' for example. Where did you find the documentation for these sections? The reason I ask is that I don't believe the official webassembly specs talk about those sections, so I guess they are somewhat compiler specific perhaps?
- Aardappel 6y agoThey are indeed not part of the spec since they are somewhat tool specific, for example the linking symbol names so far are only consumed by LLD. Docs here: https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md https://github.com/WebAssembly/tool-conventions/blob/master/...
- 6nf 6y agoThank you! One more question please - does this tool support naming of global variables? The official wasm documented 'name' section only supports local variable names I think?
- Aardappel 6y agoIt can pick names from the name section, linking section, or import/export name, in that order of preference (see https://github.com/WebAssembly/wabt/blob/master/docs/decompiler.md https://github.com/WebAssembly/wabt/blob/master/docs/decompi...). In the case of globals, the only way to name a global is thus if its imported or exported.
- ellis0n 6y agoI'm new in wasm code base. Where is export code generation located? How complex to rewrite export? I want to make export wasm to .acpul programming language for run wasm modules on animation cpu platform. Link to architecture schemas & docs will be a great.