Re:My Go executable files are still getting larger
by bradfitz on Friday April 16, 2021 @10:39AM
(#26834438)
To promote my own tool, https://github.com/bradfitz/shotizam lets you drill down into why Go binaries are large without having to make up terms like "dark bytes".
[ Parent
| on HN ]
Re:My Go executable files are still getting larger
by arp242 on Friday April 16, 2021 @11:25AM
(#26835024)
If 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?
Re:My Go executable files are still getting larger
by saati on Friday April 16, 2021 @01:07PM
(#26836497)
Because it's genuinely unknown what those are, figuring out what these bytes are is just a deep dive into the opensource go compiler at worst or just asking around on some go channels for much less effort.
Re:My Go executable files are still getting larger
by arp242 on Friday April 16, 2021 @01:23PM
(#26836674)
You're taking a joke too serious :-)
Re:My Go executable files are still getting larger
by cristaloleg on Friday April 16, 2021 @12:37PM
(#26836050)
Sadly it doesn't work with Go 1.16 :((
https://github.com/bradfitz/shotizam/issues/10
Re:My Go executable files are still getting larger
by bradfitz on Friday April 16, 2021 @12:49PM
(#26836235)
Oh right :)
Re:My Go executable files are still getting larger
by knz42 on Friday April 16, 2021 @10:47AM
(#26834543)
This 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.