r/C_Programming • u/stiggg • Aug 16 '26
Compressing executables (upx)
Hola,
I'm currently in the final stages of finishing the first version of a game I made using raylib. I ended up with a single statically linked binary containing all the assets. I found a tool called upx which can compress executables. I tried it on Windows, and it reduced the size of my exe by more than half and it still runs without any noticeable difference.
My question is, has anybody here experience with this? Are there any downsides to consider?
cheers!
8
Upvotes
View all comments
Show parent comment
2
u/gremolata Aug 16 '26
This is easy enough to check - just upx your exe and dump it into virustotal.
More often than not larger upx'ed binaries get a pass.