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 提供了各種選項來連接「一般」JavaScript 和編譯程式碼,範圍從從 JavaScript 呼叫編譯的 C/C++ 函式(反之亦然),到從編譯程式碼存取環境變數。
主題 與程式碼互動 提供了所有方法的概觀。另外兩個主題提供了關於 Embind 和 WebIDL Binder 工具的更多詳細資訊。
注意
關於編譯程式碼如何與瀏覽器環境互動的資訊,請參閱 Emscripten 執行時環境。關於檔案系統相關事項,請參閱 檔案系統概觀。