GCC Port (gcc backend) for Microchip PICMicro microcontroller

Dave Korn dave.korn@artimi.com
Tue Apr 11 10:29:00 GMT 2006


On 11 April 2006 08:47, Colm O' Flaherty wrote:

> I'm not quite sure I follow you.. if its possible to dedicate a register to
> act as the data-stack pointer, and implement it that way, why would I want
> to "keep the SP as a virtual register"?  

  Because then you would /not/ have to sacrifice one of your precious limited
supply of registers to act as a real hard stack pointer and it would be used
as a general purpose register instead and allow better code generatation and
less spilling when the register pressure gets high.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Gcc mailing list