Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Mojo hello world binary size unreasonably large #2419

Open
vrakesh opened this issue Apr 26, 2024 · 1 comment
Open

[BUG]: Mojo hello world binary size unreasonably large #2419

vrakesh opened this issue Apr 26, 2024 · 1 comment
Labels
mojo-repo Tag all issues with this label

Comments

@vrakesh
Copy link

vrakesh commented Apr 26, 2024

#1751 seems to re-appearing in v24.2.1

cat world.mojo 
fn main():
    print("Hello world")
$ mojo --version
mojo 24.2.1 (2f0dcf11)
$ mojo build world.mojo
$ ./world 
Hello world
$ du -hs world.mojo 
4.0K	world.mojo
$ du -hs world
4.3M	world
$ uname -a
Linux pop-os 6.8.0-76060800daily20240311-generic #202403110203~1713206908~22.04~3a62479 SMP PREEMPT_DYNAMIC Mon A x86_64 x86_64 x86_64 GNU/Linux


On linux the binary size for hello world is 4.3MB by default

@VMois
Copy link

VMois commented Apr 27, 2024

FYI, on MacOS, the size of Hello World is 577KB.

@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

3 participants