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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to