byt3bl33d3r / OffensiveNim

My experiments in weaponizing Nim (https://nim-lang.org/)
BSD 2-Clause "Simplified" License
2.82k stars 352 forks source link

smallest executable size #2

Closed akkuman closed 3 years ago

akkuman commented 3 years ago

example:

https://github.com/elddy/NimScan

nim c -d:danger -d:strip --opt:size --passc=-flto --passl:-flto NimScan.nim

665.54 KB

nim c -d:danger --opt:size --passc=-flto --passl:-s NimScan.nim

285.00 KB

byt3bl33d3r commented 3 years ago

I'm confused, whats the issue exactly? Those flags are outlined in the readme and the makefile

byt3bl33d3r commented 3 years ago

Closing since i don't know what the issue is exactly. Feel free to clarify.