我如何告诉 Emscripten 记录它使用 Asyncify 处理的函数?

How can I tell Emscripten to log which functions it handled with Asyncify?

Emscripten 的旧 Emterpreter 模式有一个设置 EMTERPRETIFY_ADVISE 可以输出它已识别的哪些函数需要转换以用于 Emterpreter。

在新的 Asyncify 模式下,如何获得与 Asyncify 必须 instrumented/handled 相似的函数列表?我检查了 the docs and settings.js,但看不到 EMTERPRETIFY_ADVISE.

之类的内容

自 Emscripten 2.0.5 起,ASYNCIFY_ADVISE 设置将输出 Asyncify 将转换的函数列表。

-s ASYNCIFY_ADVISE=1

如果您需要使用早期版本的 Emscripten,您可以使用这些设置进行编译:

-s BINARYEN_EXTRA_PASSES='--pass-arg=asyncify-verbose' --profiling
[asyncify] stream_hexnum can change the state due to glk_put_char
[asyncify] write_long can change the state due to write_buffer
[asyncify] write_byte can change the state due to write_buffer
[asyncify] write_heapstate_sub can change the state due to write_buffer
[asyncify] write_short can change the state due to write_buffer
[asyncify] glulxe_classtable_unregister can change the state due to classes_remove