bpr
bpr
MModular
Created by DobyDabaDu on 8/17/2024 in #questions
Mojo Build size
Right, I should have left the C out of the comparison as it was misleading. In any case, the stripped Mojo is close enough to the stripped Rust that I wouldn't sweat the size. I hope that future versions of "mojo build" will provide optimization flags that will allow us to make tradeoffs, but the biggest size one here is, as you said, dynamic vs static linking.
14 replies
MModular
Created by DobyDabaDu on 8/17/2024 in #questions
Mojo Build size
Running strip on Ubuntu takes the size of the Mojo "hello world" executable from 4MB to 350K. For comparison, a C version is 16K and a Rust version built with the "--release" flag is 390K on my machine, and strips down to 327K.
14 replies