This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Backend port: Minimizing register usage in favor of memory accesses
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: xyzzy at hotpop dot com, gcc at gcc dot gnu dot org, Richard Earnshaw <rearnsha at arm dot com>
- Date: Wed, 31 Mar 2004 10:43:58 +0100
- Subject: Re: Backend port: Minimizing register usage in favor of memory accesses
- Organization: ARM Ltd.
- Reply-to: Richard Earnshaw <rearnsha at arm dot com>
> 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.