This is the mail archive of the gcc@gcc.gnu.org mailing 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]

Re: How long should -O1 compiles take?


  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]