News for hackers. Stuff that matters.
Re:Show HN: How to compile C/C++ for WASM, pure Clang, no li... by pulse7 on Monday April 11, 2022 @04:54PM (#30994865)
Is there a similar example for C?
Re:Show HN: How to compile C/C++ for WASM, pure Clang, no li... by ern0 on Wednesday April 13, 2022 @05:37AM (#31012711)
Just rename the file and remove extern "C" stuff :). It started as C, but then I switched to CPP, to see, can I export simple symbol names, not mangled ones C++ produces.

Anyway, you can use C++ as C, using just as many C++ features as you need. (Insert "throwing the guy out of window" meme picture here.)

Re:Show HN: How to compile C/C++ for WASM, pure Clang, no li... by nhatcher on Monday April 11, 2022 @05:08PM (#30995074)