Daniel Jacobowitz - Re: Link-time optimzation (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] |
- From: Daniel Jacobowitz
- To: Ian Lance Taylor
- Cc: Robert Dewar ,Richard Earnshaw ,gcc mailing list
- Date: Thu, 17 Nov 2005 21:13:29 -0500
- Subject: Re: Link-time optimzation
- References: <437BB214.1070306@codesourcery.com> <20051117011900.GA17847@redhat.com> <437BDC9E.3080608@codesourcery.com> <1132227692.24110.40.camel@pc960.cambridge.arm.com> <m3psoz0x95.fsf@gossamer.airs.com> <437D0DC7.7040509@adacore.com> <m3y83mzvru.fsf@gossamer.airs.com>
On Thu, Nov 17, 2005 at 03:42:29PM -0800, Ian Lance Taylor wrote:
I just tried a simple unoptimized compile. -ftime-report said that final took 5% of the time (obviously final does more than formatting), and the assembler took 4% of the total user time, and system time took 16% of wall clock time. Cutting those numbers in half makes 1% seem not implausible to me, maybe even low.
I'm considering an unoptimized compile because that is where the assembler makes the most difference--the compiler is faster and the assembler output probably tends to be longer, and also an unoptimized compile is when people care most about speed. For an optimizing compile, the assembler is obviously going to be less of a factor.
Also, please keep in mind that generating and then assembling debug info takes a huge amount of I/O relative to code size. I'd expect much more than 1% saving the write-out and write-in on -g.
-- Daniel Jacobowitz CodeSourcery, LLC
- Follow-Ups:
- Re: Link-time optimzation
* From: Bernd Schmidt - Re: Link-time optimzation
* From: Mike Stump
- Re: Link-time optimzation
- References:
- Link-time optimzation
* From: Mark Mitchell - Re: Link-time optimzation
* From: Richard Henderson - Re: Link-time optimzation
* From: Mark Mitchell - Re: Link-time optimzation
* From: Richard Earnshaw - Re: Link-time optimzation
* From: Ian Lance Taylor - Re: Link-time optimzation
* From: Robert Dewar - Re: Link-time optimzation
* From: Ian Lance Taylor
- Link-time optimzation
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |