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

Fabio Luis Girardi fluisgirardi at gmail.com
Tue Jan 28 20:45:39 CET 2020


Thanks for the hints!

Em ter., 28 de jan. de 2020 às 16:41, Yuriy Sydorov <jura at cp-lab.com>
escreveu:

> On 28.01.2020 21:14, Fabio Luis Girardi via fpc-pascal wrote:
> > Em ter., 28 de jan. de 2020 às 16:04, Yuriy Sydorov <jura at cp-lab.com
> <mailto:jura at cp-lab.com>> escreveu:
> >
> >     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.
> >
> >
> > Yes, I know. But to add this new CPU support for the FPC/FreeBSD, it is
> better I start with files of rtl/freebsd/i386 or
> > rtl/freebsd/x86_64 or use another start point, like rtl/netbsd/arm ?
>
> The primary goal of a startup code is to get pointers to the command line
> parameters and the environment block. If
> arm-freebsd uses the stack to pass these pointers (the same way as
> i386-freebsd), then you need just to convert the i386
> startup assembly to the arm assembly.
> For start you need only the prt0.as file.
>
> Yuriy.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>


-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200128/70cd6475/attachment-0001.html>


More information about the fpc-pascal mailing list