Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



 Hello,

 gbuild introduced using -ggdb3 for debugging information and I intend to 
reduce that to -ggdb2. Let the numbers speak themselves:

789668K, 2:17  (-ggdb3)
vs
171074K, 1:06 (-ggdb2)

 The first is size of libswlx.so, a binary from sw/ I picked at random, the 
second is time needed to finish rebuild under sw/ after touching one .cxx 
file.

 Debug level 2 is gcc default, the manpage says that level 3 includes extra 
information such as macro definititions. Does somebody actually need that? I 
consider it not very useful, especially considering the hefty price paid for 
it. Almost five times the size of data is really a lot more data for I/O to 
shuffle back and forth.

 Also, when linking, I see sometimes -Wl,-O1 used, but only for some 
libraries. Does anybody know where that comes from? I cannot find it, but 
this is probably unnecessary for debug builds as well.

-- 
 Lubos Lunak
 l.lunak@suse.cz

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.