EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: compress debug symbols
From: Michael Davidsaver via Core-talk <[email protected]>
To: EPICS core-talk <[email protected]>
Date: Thu, 3 Jan 2019 10:17:32 -0800
Anyone else who has been annoyed about large binary file sizes,
when debug symbols are included, might benefit from looking into
compressing debug info section.

Since binutils 2.26, ld accepts --compress-debug-sections=zlib
which works great for reducing executable and shared library
sizes.  eg. libpvAccess.so.6.1.0 for linux-x86_64 goes
from 21MB to 7.3MB.

What I discovered this morning is that since at least GCC 5.1
the option '-gz' will compress individual object files as well,
and consequently reduces static library size.  eg. libpvAccess.a
goes from 53MB to 32MB.  Still huge, but less so.

Navigate by Date:
Next: 64-bit records Timo Korhonen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Next: 64-bit records Timo Korhonen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 08 Jan 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·