This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How long should -O1 compiles take?
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Subject: Re: How long should -O1 compiles take?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 04 Oct 1999 12:05:30 -0600
- cc: gcc at gcc dot gnu dot org, hosking at cs dot purdue dot edu, feeley at iro dot umontreal dot ca
- Reply-To: law at cygnus dot com
In message <199910042229.RAA24178@polya.math.purdue.edu>you write:
> So I want to ask the more general question---how long should -O1 compiles
> take? In other words, what are the design goals for gcc -O1? Is it OK
> to add algorithms to -O1 that double or triple the compile times for some
> programs? Is -O1 supposed to be a balance between local optimizations
> and fast compile times, or is it supposed to be something else? A person
> whose judgement I respect said that gcc was one of the few compilers that
> works hard to keep resource requirements down. (I see this in the recent
> GC work, for example.) Is this now a design consideration for -O1,
> and will it be in the future?
This is discussed in the manual.
It's meant to optimize, but use less time/memory than -On for n > 1.
jeff