dcodeIO / webassembly

A minimal toolkit and runtime to produce and run WebAssembly modules.
Other
816 stars 31 forks source link

How to use malloc ? #33

Closed rambip closed 3 years ago

rambip commented 3 years ago

I know that this project is inspired by emcsripten.

In emscripten, you can compile a c code that uses malloc, and you don't need to import it.

The malloc is defined in the .wasm, and you can export it.

Why can't I do something similar with this tool ?

I don't know how I'm suppose to export the malloc function !