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

Yuriy Sydorov jura at cp-lab.com
Tue Jan 28 20:04:08 CET 2020


On 28.01.2020 19:08, Fabio Luis Girardi via fpc-pascal wrote:
> 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?

You need to add support of a new CPU to the existing freebsd target. The target would be arm-freebsd, since armhf is not 
treated as a separate CPU by FPC. You need to create arm startup files in the rtl/freebsd/arm folder.

Yuriy.


More information about the fpc-pascal mailing list