Created
December 28, 2017 18:54
-
-
Save kyorohiro/74ac2b62049ae74ecd705b1bb6b62897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$mv a.out.js a.out.js.backup | |
$emcc main.c -s NO_EXIT_RUNTIME=0 -s WASM=1 | |
$ls -al | |
total 872 | |
drwxr-xr-x 7 kyorohiro staff 238 12 29 00:41 . | |
drwxr-xr-x 3 kyorohiro staff 102 12 29 00:25 .. | |
-rw-r--r-- 1 kyorohiro staff 98265 12 29 00:41 a.out.js | |
-rw-r--r-- 1 kyorohiro staff 294319 12 29 00:41 a.out.js.backup | |
-rw-r--r-- 1 kyorohiro staff 44476 12 29 00:41 a.out.wasm | |
-rw-r--r-- 1 kyorohiro staff 73 12 29 00:30 main.c | |
$node a.out.js | |
Hello World!! | |
$ emcc main.c -s NO_EXIT_RUNTIME=0 -s WASM=1 -O2 | |
$ ls -al | |
total 704 | |
drwxr-xr-x 7 kyorohiro staff 238 12 29 00:48 . | |
drwxr-xr-x 3 kyorohiro staff 102 12 29 00:25 .. | |
-rw-r--r-- 1 kyorohiro staff 31908 12 29 00:48 a.out.js | |
-rw-r--r-- 1 kyorohiro staff 294319 12 29 00:41 a.out.js.backup | |
-rw-r--r-- 1 kyorohiro staff 24157 12 29 00:48 a.out.wasm | |
-rw-r--r-- 1 kyorohiro staff 73 12 29 00:30 main.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment