ern0/howto-wasm-minimal
View on GitHub ↗ ★ 534 C++
How to create minimal wasm module with plain C/C++
4 mentions on Hacker News by 4 people: 1 story, 3 comments · first 2022-04-09 · latest 2023-03-14
20082026
-
…the baseline clang with wasm (but not JS?) [1] [2] [3], referenced from a similar thread 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 -
For future readers, this is the code that is being referred: https://github.com/ern0/howto-wasm-minimal/blob/master/inc.c... It should be: uint32_t gray = 0.299 * ptr[i] + 0.587 * ptr[i+1] + 0.114 * ptr[i+2]; ptr[i] = gray; ptr[i+1] =…
comment by syrusakbary · 2022-04-11 · in Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no framework -
▲ 217
Show HN: How to compile C/C++ for WASM, pure Clang, no libs, no frameworkstory by ern0 · 2022-04-11 · 42 comments
-
This uses a strange "link broker", the link behind this is pointing to https://github.com/ern0/howto-wasm-minimal
comment by johndoe0815 · 2022-04-09