3 ms·
Historically, Emscripten produces pretty large binaries, but that's because it's also trying to make transitioning from desktop code to the web easy; therefore
by steveklabnik 9y ago
Historically, Emscripten produces pretty large binaries, but that's because it's also trying to make transitioning from desktop code to the web easy; therefore it includes a bunch of its own runtime.
They've been doing a lot of work to cut it down lately. As wasm grows, and this becomes more of a focus, it should get really small.
On the other hand, LLVM's new backend means you can skip that runtime and get very tiny binaries; the smallest file I've gotten rustc to produce when compiling to wasm is just over 100 bytes.