Skip to content

Comment on Wasm3 compiles itself (using LLVM/Clang compiled to WASM)parent

Comments

Some runtimes like wasmtime support AOT compilation artifacts that can be loaded.

But in general you can't "just compile" Webassembly, because you need a runtime.

There is a C project that can compile an executable that includes the runtime and the compiled WASM, but the name is escaping me right now.

Note that JIT in the WASM world doesn't quite mean the same thing as for eg Java. Almost all runtimes compile a whole module at once, not individual functions.

Compiling individual functions was something in Java JITs like 20 years ago, they are a little bit more clever nowadays.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.