Reducing binary size

I'm trying to check the executable binary generated by mojo, for a simple "Hello" I got a 1.1M, is there a way to get a less size, a way to optimize the outputfile size?
No description
3 Replies
Hasan Yousef
Hasan YousefOP11mo ago
Note, for the same code in Zig, I was able to optimize the size to be 8.9K only (compressed from 2.0M)
No description
sora
sora11mo ago
It's a known issue. If you are on a different platform, please file a separate issue.
GitHub
Issues · modularml/mojo
The Mojo Programming Language. Contribute to modularml/mojo development by creating an account on GitHub.
albsnz
albsnz9mo ago
I'm seeing this issue too in WSL2 Ubuntu have raise issue: https://github.com/modularml/mojo/issues/1751
GitHub
[BUG]: Mojo hello world binary size unreasonably large · Issue #175...
Bug description Binary file large in mojo 0.7.0 Reoccurrence of BUG #599 which was resolved in 0.3.0. Steps to reproduce System information WSL2 - Ubuntu 22.04.3 LTS mojo 0.7.0 (af002202) modular 0...
Want results from more Discord servers?
Add your server