6 ms·
To promote my own tool, https://github.com/bradfitz/shotizam https://github.com/bradfitz/shotizam lets you drill down into why Go binaries are large without hav
by bradfitz 5y ago
To promote my own tool, https://github.com/bradfitz/shotizam https://github.com/bradfitz/shotizam lets you drill down into why Go binaries are large without having to make up terms like "dark bytes".
- knz42 5y agoThis code, if I'm reading it right, uses the symbol table and ELF section headers. As explained in OP, the sum of sizes advertised in the symtable and ELF section headers does not add up to the final binary size. The shotizam tool is thus blind to that difference.
- arp242 5y agoIf physicists can have dark matter and dark energy, then why can't we have dark bytes? Why should we let the physicists have all the dark fun?
- cristaloleg 5y agoSadly it doesn't work with Go 1.16 :(( https://github.com/bradfitz/shotizam/issues/10 https://github.com/bradfitz/shotizam/issues/10
- bradfitz 5y agoOh right :)