binji / wasm-clang

Running Clang/LLD in WebAssembly Demo
https://binji.github.io/wasm-clang
Apache License 2.0
259 stars 27 forks source link

Optimized clang.wasm #4

Closed kripken closed 4 years ago

kripken commented 4 years ago

Looks like clang.wasm on the demo site wasn't optimized by wasm-opt. Attached is an optimized version, which is 13% smaller (34.10 MB to 29.77 MB) clangO.wasm.gz

binji commented 4 years ago

Nice, thanks! You may want to take a look at lld too.

kripken commented 4 years ago

Sure, attached.

lld is almost half the size, 34 MB to 19 MB.

lldO.wasm.gz

binji commented 4 years ago

Updated here: https://github.com/binji/wasm-clang/commit/88838f3cf4a4e7dfae026fce4ef81c880f297808