Porting Third Party to WebAssembly

Marco Kuoni
WebAssembly
Published in
4 min readNov 6, 2023

--

The idea of this article is to take a more complex application (as it could exist in a C++ library) and port it to WebAssembly. In this process, the application is first compiled into native machine code and executed directly on the operating system. Then, in a second step, the same application is compiled into WebAssembly and used in a web application.

Bitmap Application

The application uses the bitmap_image.hpp by Arash Partow, which is used to work with bitmaps in C++.

#include <cmath>
#include <cstdio>…

--

--

Marco Kuoni
WebAssembly

CTO lemonbrain, BSc electrical engineering, cand. BSc computer science