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]
Other format: [Raw text]

Re: Backend port: Minimizing register usage in favor of memory accesses


On Wednesday 31 March 2004 11:43, Richard Earnshaw wrote:
> > The goal of an optimizing compiler is to produce the fastest code for
> > the target.
>
> Not necessarily.  The goal of an optimizing compiler is to minimize some
> cost metric.  Sometimes that cost metric is the same as 'target execution
> time' at other times it is something else, such as 'code size'.  Many of
> the specific optimizations performed will be same regardless of the
> overall cost metric being worked on; but not always.
>
> R.
Yes, my mistake... I meant to say "the BEST code for the target", which is 
horribly subjective.


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