This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Port (gcc backend) for Microchip PICMicro microcontroller
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Colm O' Flaherty <colm_o_flaherty at hotmail dot com>
- Cc: gcc at gnu dot org
- Date: Mon, 10 Apr 2006 14:39:51 +0200
- Subject: Re: GCC Port (gcc backend) for Microchip PICMicro microcontroller
- References: <BAY112-F36E53EF1411FC49D517FA4B4CC0@phx.gbl>
On Mon, Apr 10, 2006 at 07:54:24AM +0000, Colm O' Flaherty wrote:
> I'm hoping that there is an existing backend architecture where there is no
> stack, so that I can have a peep to see how the code fakes stack support,
> but so far, all the obvious candidates (the microcontrollers) seem to have
> a stack.
The PowerPC (look in config/rs6000) has no stack.
All GCC needs is that you define a register to be the stack pointer
(STACK_POINTER_REGNUM) and this register doesn't have to be a base register
(see "Addressing modes" in the GCC Internals manual). Even a pushm1 pattern
(see "Standard Pattern Names for Generation") is not necessary if you are
happy with the code that GCC itself comes up with.
--
Rask Ingemann Lambertsen