(no title)
abbeyj | 9 months ago
I'm using x86_64-15.1.0-release-win32-seh-msvcrt-rt_v12-rev0.7z from https://github.com/niXman/mingw-builds-binaries/releases/tag... as the toolchain. This produces a 102 KB .exe file. Right off the bat we are doing much better than the claimed 278 KB. Maybe the author is using a different toolchain or different settings? Exact steps to reproduce would be welcome.
We can improve this by passing some switches to GCC.
gcc -Os => 100 KB
gcc -Oz => 99 KB
gcc -flto => 101 KB
gcc -s => 51 KB
gcc -s -Oz -flto => 47 KB
If all you are interested in is a small .exe size, there is plenty of room for improvement here.
azhenley|9 months ago
jedimastert|9 months ago
I wonder if they are compiling with debugging symbols? I don't know how much this would change things in vanilla C but that would be my first guess
tecleandor|9 months ago
debugnik|9 months ago
tomalbrc|9 months ago
abbeyj|9 months ago
unknown|9 months ago
[deleted]