machine type must be wasm32
unknown file type
{"text":"asm"}
atexit()s
-O2 --closure 1
TypeError: Module.someThing is not a function
Runtime
Runtime.someThing
-s
NameError
a problem occurred in evaluating content after a "-s"
file=..
f'..'
SyntaxError: invalid syntax
RangeError: Maximum call stack size exceeded
.wasm
dlopen()
val
ASYNCIFY_IMPORTS
ccall
malloc
free
SAFE_HEAP
本節包含與在 Emscripten 編譯程式碼中使用檔案相關的文章。
檔案系統概述提供了 Emscripten 如何支援檔案操作的高階概述。
打包檔案顯示如何使用 emcc 來打包編譯程式碼所需的檔案。
同步虛擬 XHR 支援的檔案系統用法說明如何使用 XHR 從 HTTP 伺服器設定二進位資料的延遲載入。
另請參閱
API 參考
檔案系統 API (JavaScript)。
非同步檔案系統 API (C/C++)。