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: An unusual Performance approach using Synthetic registers, and a request for guidance.


On Friday 27 December 2002 03:25 pm, Dave Hudson wrote:

<snip>

>
> This strategy is exactly what the IP2k port of gcc does.  We use 32
> directly addressable memory locations as our common "registers" and
> expose the two pointer and stack pointer regs.  We completely hide the
> accumulator register W and the partial multiply result MULH.  All of our
> normal insn patterns start off not understanding anything about the
> hidden regs and then in the machine-dependent reorg we split insn
> patterns into ones that explicitly use the previously hidden regs and
> run a series of processor-specific passes to eliminate any redundancy.
>
> It's not pretty, but it does work very well.

Then this approach is not completely insane.  Thank you.

Andy

>
> Regards,
> Dave


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