#first program binary size
1 messages · Page 1 of 1 (latest)
^^ If you pass -OReleaseFast -fstrip (assuming you're using zig build-exe) you'll get a much smaller binary
(12K for me, using std.log.info for printing)
if you are gonna use a releasemode other than safe and ur going for size why not use -OReleaseSmall
in general though, I reccomend using ReleaseSafe mode as ur release mode
unless you are really needing speed or size
that way any bug that happens will be much easier to debug
yeah, ReleaseSafe for release builds is a good place to start - if you find that's too slow or large in practice, that's when you should look at ReleaseSmall or ReleaseFast