Skip to content

Commit 003980d

Browse files
committed
update
1 parent e0dd641 commit 003980d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

WebAssembly-编译目标/WebAssembly-编译目标.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@
169169
# 1、out_file可以带路径。
170170
# 2、若为-o test.wasm,则只生成test.wasm这个文件;若为-o test.js,则生成test.js文件 ,
171171
# 还有test.wasm;若为-o test.html,则生成test.html文件,还有test.js和test.wasm。
172+
173+
174+
emcc hello.c -o hello.html
175+
# 生成:
176+
# - hello.html (HTML包装器)
177+
# - hello.js (JavaScript胶水代码)
178+
# - hello.wasm (WebAssembly模块)
172179
```
173180

174181

0 commit comments

Comments
 (0)