An unusual Performance approach using Synthetic registers, and a request for guidance.
Andy Walker
ja_walker@earthlink.net
Sun Dec 29 02:23:00 GMT 2002
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
More information about the Gcc
mailing list