An open API service indexing awesome lists of open source software.

https://github.com/vsoch/emscripten

Getting started with emscripten!
https://github.com/vsoch/emscripten

cpp emscripten getting-started learning

Last synced: 2 months ago
JSON representation

Getting started with emscripten!

Awesome Lists containing this project

README

          

# Emscripten!

This is a tiny repository to learn (and have fun with
[Emscripten](http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html).
Specifically, I'm getting the hang of C++ and want to create some "in browser
experiments."

## Build

For most of these, you can compile the cpp script as follows:

```bash
em++ helloworld.cpp -o index.html
```

If it doesn't work in your browser, you can disable WebAssembly:

```bash
em++ helloworld.cpp -o index.html -s WASM=0
```

I was having a hard time getting the wasm to work on Github Pages, so the
examples here are running without it.

## Experiments

- [hello-world](hello-world): or more properly, "Hello Dinosaur!" ([web](https://vsoch.github.io/emscripten/hello-world/))
- [hello-dinosaur](hello-dinosaur): experimenting with adding canvas (and using WebAssembly) ([web](https://vsoch.github.io/emscripten/hello-dinosaur/))
- [travel](travel): a fun testing problem I did to study for a course! ([web](https://vsoch.github.io/emscripten/travel/))
- [green-eggs](green-eggs): testing pre-loading and reading a file ([web](https://vsoch.github.io/emscripten/green-eggs/))