Closed petamoriken closed 7 years ago
Not sure what's going wrong, but in general when you run something like clang -emit-llvm --target=wasm32 -S dlmalloc.c
then you are compiling using the local system settings. For example, you get the local system headers that define basic types and so forth. That might be messing things up. (When you use emcc
to build, it uses portable libc headers and also handles the triple stuff for you.)
Sorry for my late reply. https://github.com/guybedford/wasm-stdlib-hack solved this issue.
Thanks!
I want to build
dlmalloc.c
to wasm, but I can't.dlmalloc.c
from http://g.oswego.edu/dl/html/malloc.htmls2wasm dlmalloc.s > dlmalloc.wast
like below