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!
- Host: GitHub
- URL: https://github.com/vsoch/emscripten
- Owner: vsoch
- License: mit
- Created: 2018-10-15T21:13:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T23:21:37.000Z (over 7 years ago)
- Last Synced: 2025-01-28T00:30:05.958Z (over 1 year ago)
- Topics: cpp, emscripten, getting-started, learning
- Language: JavaScript
- Size: 2.49 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/))