[fpc-pascal] Best start point for adding new FPC target

Marco van de Voort core at pascalprogramming.org
Tue Jan 28 20:58:16 CET 2020


Op 28/01/2020 om 18:08 schreef Fabio Luis Girardi via fpc-pascal:
> Hi all!
>
> I'm studying how to add a new target for the Freepascal compiler. The 
> target is the missing armhf-FreeBSD. So I have looked at FPC guide 
> (https://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target) 
> and looking at Overview section, item 2 says:
>
> "Take the closest existing RTL as a start, copy it and start implementing"
>
> I was thinking of starting with armhf-netbsd, that can I supposeĀ to be 
> the closest to the armhf-freebsd target. I'm right? Someone 
> experienced adding new targets for FPC has another suggestion?
>
That was written from the perspective of a new OS.

For adding a new architecture to an existing OS, probably the files 
systems/i_bsd.pas and t_bsd.pas are the main files.

A record with settings needs to be added to i_bsd and the calling of 
assembler and linker needs to be checked in t_bsd.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200128/f0684b24/attachment.html>


More information about the fpc-pascal mailing list