Displaying 1 result from an estimated 1 matches for "__heap_base".
2019 Oct 15
4
Wasm, start function, and default globals
...t me if so.
I’ve been using the clang/wasm-ld tools to experiment with some basic examples, and there’s a couple things I’m wrestling with.
1) How to denote a function as the “start” function (https://webassembly.github.io/spec/core/binary/modules.html#start-section)
2) How to avoid the defaulted __heap_base global.
I’ve dug around on the samples, mailing lists, and in the wasm-ld code for an attribute or flag to specify the start function, but don’t see anything. Is this just not implemented (or tracked) yet?
For 2), I always see the below global in the compiled output even with the most trivial cod...