This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: help request
- To: baa at sowa dot is dot uec dot ac dot jp, gcc at gcc dot gnu dot org
- Subject: Re: help request
- From: Mike Stump <mrs at windriver dot com>
- Date: Wed, 17 Nov 1999 16:49:19 -0800 (PST)
> Date: Wed, 17 Nov 1999 16:25:08 +0900
> From: "Ben A. Abderrazek" <baa@sowa.is.uec.ac.jp>
> I need a compiler which does not allocate machine registers at
> all. All compiler 's variables reside in logical registers.
> Is the GNU word has such a compiler source so that I can set the
> number of logical registers.
Sure. Typically one sets aside a small amount of space for
`registers', say room for 8. You wire up the port to have 8
registers, just as in a normal port. You expose all the instructions
to gcc (in the .md file). It will generate code that will run, and
you have a port. If you then want to go back and performance tweak
it, you have an expert in assembly on that machine examine the results
of the compiler and see the types of things that are non-optimal. You
then find out the areas that gcc is deficient in, how to tweak them
up, and improve them.