🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51853

-gdwarf vs. -g -- long, long compile times!

#51853
From: Kaleb Keithley
Date: Thu, 25 Mar 1993 00:52
29 lines
1942 bytes
Sun Desktop SPARC, SunOS 5.1 (Solaris 2.1) gcc-2.3.3 binaries from prep.  
Fixed-includes.  Building X11R5 using R5.SunOS5.patch and Motif.

-gdwarf takes substantially longer than -g, and creates *much* larger .o
files.  

E.g. Popup.c in X11R5:/lib/Xt takes 5 seconds to compile w/ -g, but more
than 3 minutes when -gdwarf.  The -g .o file is 53088, while the -gdwarf
.o file is 155040.

Similarly, the Motif RowColumn.c takes ~2 minutes to compile w/ -g, but
-gdwarf takes 22 minutes.  The -g .o file is 369172, and the -gdwarf file
is 599240.  

As a reference point, -gdwarf1 took 1:18 and 1:47 for Xt/Popup.c and
Xm/RowColumn.c respectively.

I'm not overly concerned about the larger size, it seems reasonable that 
there'd be more to dwarf debug-info.  (Although disk space is always at a 
premium and at 3:1, I have to eliminate some other stuff from my disk. 
And here I was, thinking that a Gig would last a while! :-))

Using 'ps -el' I determined that most of that 22 minutes was used by the
assembler.  If you'll pardon my asking, what pray tell is gcc sending to 
the assembler that could make it spend 22 minutes to produce a .o file?

-- 

Kaleb Keithley                                kaleb@devvax.jpl.nasa.gov
Technical Details
Message-ID: <1993Mar25.005217.14345@jpl-devvax.jpl.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!awds.imsd.contel.com!llyene!jato!ufo!sirocco!kaleb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,55ef75ca225ce69d,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-03-24 18:26:31 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!awds.imsd.contel.com!llyene!jato!ufo!sirocco!kaleb
From: kaleb@sirocco (Kaleb Keithley)
Subject: -gdwarf vs. -g -- long, long compile times!
Message-ID: <1993Mar25.005217.14345@jpl-devvax.jpl.nasa.gov>
Sender: usenet@jpl-devvax.jpl.nasa.gov (For NNTP so rrn will be able to post)
Nntp-Posting-Host: sirocco.jpl.nasa.gov
Organization: Jet Propulsion Laboratory (NASA)
Distribution: gnu
Date: Thu, 25 Mar 1993 00:52:17 GMT
Lines: 30