[fpc-pascal] Nov. 30th Build of 2.1.1 for Sparc

Marco van de Voort marcov at stack.nl
Thu Nov 30 22:33:54 CET 2006

> Wolfe, Robert wrote:
> > I would like to port FPC over to FreeBSD for Sparc as well if at all
> > possible, however, with a lack of an existing FPC compiler for that
> > platform, I was not sure how I would go about doing that.
> The compiler is only per architecture, so you only need to build a
> freebsd rtl using for example a sparc-linux compiler, then build a
> sparc-freebsd compiler using the freebsd RTL.

Yes. This pretty much boils down to:
- checking all structures.
- checking all syscalls against libc compiled (and then disassembled)
tests,paying particular attention to the ones with 64-bit types.
- Creating startup code, which can be easiest done by modifying
the makefiles in /usr/src/lib/csu and below to compile with -O2 -S, compile
and then strip libc initialisation and finalisation from the result.

More information about the fpc-pascal mailing list