Skip to content

birgerbr/hello_webassembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello Webassembly

Hello world example with webassembly and CMake

Building

  1. Setup emscripten (including source ./emsdk_env.sh)
  2. run ./build.sh

The output wil then be in ./dist

Serving files

The resulting files can be served by a http server, for exampke http-server.

cd dist && http-server .

Console log

Opening the hosted files (in my case at http://127.0.0.1:8080) and viewing the Console gives:

prerun
From app: Opening file: /input.txt
From app: File opened
From app: /input.txt: Hello webassembly
From app: Opening file: /not-existing-file.abc
From app: Could not open file.
From app: usage: ./this.program path

About

Hello world example with webassembly and CMake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published