3 ms·
Ok, I committed some mild linker crimes and got the same program down to 800 bytes. rustc hello.rs -C panic=abort -C opt-level=3 -C link-args="/ENTRY:main /
by ChrisSD 3y ago
Ok, I committed some mild linker crimes and got the same program down to 800 bytes.
rustc hello.rs -C panic=abort -C opt-level=3 -C link-args="/ENTRY:main /DEBUG:NONE /EMITPOGOPHASEINFO /EMITTOOLVERSIONINFO:NO /ALIGN:16"
- archargelod 3y agoCool. That reminded me of this blog post[0], with Hello World Nim binary in just 150 bytes! [0] - https://hookrace.net/blog/nim-binary-size/ https://hookrace.net/blog/nim-binary-size/
- themoonisachees 3y agoDon't x64 binaries have to be 4k-aligned or something like that? I remember a video about runnable qr codes where this was a major point because they had to do trickery to make windows run binaries that were less than that.
- deleted 3y ago[deleted]