PetterS/clang-wasm
View on GitHub ↗ ★ 153 C++
How to build webassembly files with nothing other than standard Clang/llvm.
4 mentions on Hacker News by 2 people: 1 story, 3 comments · first 2019-03-20 · latest 2023-03-14
20082026
-
…on HN. [1] https://github.com/ern0/howto-wasm-minimal [2] https://github.com/robrohan/wefx [3] https://github.com/PetterS/clang-wasm
comment by wyldfire · 2023-03-14 · in Cheerp 3.0: C++ compiler for the Web, now permissively licensed -
See also my example I put together some time ago: https://github.com/PetterS/clang-wasm At the time, I could not find something like this online. It's fun to write your own malloc! :-)
comment by petters · 2022-04-11 · in Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework -
No, it is not needed any more. I have a demo here: https://github.com/PetterS/clang-wasm But be prepared to work without libc if you don't use emscripten. Writing a malloc is fun though!
comment by petters · 2019-03-20 · in LLVM 8.0.0 Release