Skip to content

Commit

Permalink
+ wasm/none
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Ponyatov <dponyatov@gmail.com>
  • Loading branch information
ponyatov committed Mar 19, 2019
1 parent 1dd1db0 commit 14812c5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/web/wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.wasm
4 changes: 4 additions & 0 deletions book/web/wasm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all: none.wasm

%.wasm: %.c
emcc -s WASM=1 -s SIDE_MODULE=1 -o $@ $<
9 changes: 9 additions & 0 deletions book/web/wasm/emscripten.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@
~/emsdk$ source ./emsdk_env.sh
\end{lstlisting}

\secrel{Первые программы}

\noindent
\url{https://tproger.ru/translations/webassembly-tutorial-first-steps/}

\bigskip
\lst{web/wasm/none.c}{language=C}
\lst{web/wasm/Makefile}{}

\secup
1 change: 1 addition & 0 deletions book/web/wasm/none.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void none(void) {}
3 changes: 3 additions & 0 deletions book/web/wasm/wasm.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
\wasm\ пока не поддерживает обновление кода, поэтому рестартовать игру придется
вручную.

\bigskip
\url{https://habr.com/ru/company/jugru/blog/441140/}

\input{web/wasm/emscripten}
\input{web/wasm/wabt}

Expand Down

0 comments on commit 14812c5

Please sign in to comment.