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: Jim Wilson <wilson at specifixinc dot com>
- To: xyzzy at hotpop dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 30 Mar 2004 12:31:51 -0800
- Subject: Re: Backend port: Minimizing register usage in favor of memory accesses
- References: <200403301148.19194.xyzzy@hotpop.com>
xyzzy@hotpop.com wrote:
I understand that one of the goals of any optimizing compiler is to maximize
use of registers since this is the fastest and least space consuming type of
instruction on most processors.
The goal of an optimizing compiler is to produce the fastest code for
the target. If the target wants registers to be used, then we use
registers. If the target doesn't want registers to be used, then we
don't use registers.
Is there any way to force the GCC backend to do this, if at all?
We have been doing this since the beginning for an i386 target.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com