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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal