Ayman Bagabas


Contact me

© 2020 Ayman Bagabas

Tag: c

  • Run native C/C++ code in the browser using Emscripten - [ 18 Nov 2020 ]

    While working on WMIDumpper, a simple tool that analyzes ACPI WMI blocks, I had to figure out how to implement bmfdec in JavaScript. My first thought was to port it to JavaScript and put in the time and effort to rewrite ~1500 lines of C code in JS. But then a light bulb went on in my head, WebAssembly! A quick search showed that Emscripten is exactly what I need. It can compile C/C++ native code into WebAssembly and run it on the web. Read more...