From d7a4b915cf44ced942f93c8e9ebfdfd91fd65fae Mon Sep 17 00:00:00 2001 From: Guus Waals <_@guusw.nl> Date: Fri, 12 Jun 2026 16:58:58 +0200 Subject: [PATCH] Add new post --- posts/cpp-without-emscripten.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 posts/cpp-without-emscripten.md diff --git a/posts/cpp-without-emscripten.md b/posts/cpp-without-emscripten.md new file mode 100644 index 0000000..580841a --- /dev/null +++ b/posts/cpp-without-emscripten.md @@ -0,0 +1,6 @@ +# C++ without emscripten + +If you've ever worked on a C++/C project and wanted to distribute it for browsers, you have probably hear of emscripten. emscripten allows you to compile your existing C++/C codebase without (if you're lucky) any changes and run it in a browser. +This is made possible by the use of WebAssembly (wasm) combined with a javascript interface to browser functionality. + +For my game project I have been doing some research into this process and doing the same but without emscripten. In theory you don't need emscripten as the entire compilation step to WebAssembly (wasm) is already handled by LLVM with it's wasm backend.