M
Modular•15mo ago
eipi-1

binary file size

In the first community live stream on youtube at around 36 minutes, Chris Lattner mentions "hello world it's 20K" which I understand means that the binary size of a hello world example could be as low as 20kb. If I mojo build hello_world.🔥 on linux I get a 1.7MB binary. How can I reduce that binary size? Is that 20k a target that should be achievable later? Is it calculated without the runtime that is bundled in the binary? Do I need to enable some kind of optimization?
1 Reply
Jack Clayton
Jack Clayton•15mo ago
Hi @eipi-1 this is should be resolved in the next release, here's a ticket: https://github.com/modularml/mojo/issues/599
GitHub
[BUG]: Mojo hello world binary size unreasonably large · Issue #599...
Bug description After building the HelloWorld program, the size of the binary is over 1 MB -rw-r--r-- 1 1000 36 Sep 7 17:57 hello.mojo -rwxr-xr-x 1 1000 1.7M Sep 7 17:58 hello whereas the example f...
Want results from more Discord servers?
Add your server