Hivini / lab-web-0

Web laboratory assignment. Lab #0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ to WASM Example

This is a homework activity for the web development laboratory. Is just a simple example. This tutorial was based on Compiling a New C/C++ Module to WebAssembly.

Requeriments

How to compile

If changes are made, you can create a new .js and .wasm files with this command:

emcc test.cpp -s WASM=1 -s NO_EXIT_RUNTIME=1  -s "EXPORTED_RUNTIME_METHODS=['ccall']"

How to run

go run main.go

Demo video

About

Web laboratory assignment. Lab #0


Languages

Language:JavaScript 73.9%Language:HTML 24.6%Language:C++ 0.6%Language:Svelte 0.6%Language:CSS 0.2%Language:Go 0.0%Language:TypeScript 0.0%