[fpc-devel] Porting FPC to a new architecture

Michael Schnell mschnell at lumino.de
Thu Nov 19 11:36:07 CET 2009


Felipe Monteiro de Carvalho wrote:
> How would one proceed to port Free Pascal to a new architecture? Any
> initial steps? I haven't found anything about this.

Please take a look at the backlog of this mailing list. It has been
discussed just recently in the "LLVM Backend?" thread and also was
discussed several times some time ago. (You might try to search for
"NIOS", see below.)

> 
> I am considering a MIPS port (to target linux-mips). But don't count
> on it, not sure at the moment if it will be successfull.
> 

This is great news for me, as I am considering a NIOS2 Port and NIOS2 is
very similar to MIPS32 so we might be able to work together on this and
the resulting thingy would support both architectures.

-Michael

P.S.:
Here a quote from the "LLVM Backend?" thread:

--------------------------------------------------
As this processor, a load/store RISC with 32 non-dedicated 32 Bit
registers, is very similar to MIPS and thus a bit similar to ARM (only
that MIPS-alike it does not have a status register) I suppose I should
use the well-tested ARM code generator and modify it appropriately. Once
I am done, someone should be able to add some definitions to have the
thing create MIPS-32 code.

I just need to find the spare time (and at that time, I do hope for
appropriate tips from this list to get me started,)

-Michael
-----------------------------------------------------------



More information about the fpc-devel mailing list