Comment Comment by cryo Interesting, would be cool to see that applied to a real world rust program.Today I got rid of libc on the Windows version of a commandline tool to flash firmware via USB, which freed 7 kB of the .exe size.The original version was done in C++ plus Qt and was ca. 3.5 MB (.exe and dependencies).The optimized C version is 14 kB compressed with upx.FYI Code: https://github.com/dresden-elektronik/gcfflasher parent cryo 2 years ago
Today I got rid of libc on the Windows version of a commandline tool to flash firmware via USB, which freed 7 kB of the .exe size.
The original version was done in C++ plus Qt and was ca. 3.5 MB (.exe and dependencies).
The optimized C version is 14 kB compressed with upx.
FYI Code: https://github.com/dresden-elektronik/gcfflasher