<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">Op 28/01/2020 om 18:08 schreef Fabio
Luis Girardi via fpc-pascal:<br>
</div>
<blockquote type="cite"
cite="mid:CAMeLTwc=e5bXOeOqOPdu6QTrUJR-LL4Vfdd-z0fyNoMcEn+Ojg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all!
<div><br>
</div>
<div>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 (<a
href="https://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target"
moz-do-not-send="true">https://wiki.freepascal.org/Porting_Free_Pascal#Adding_a_new_target</a>)
and looking at Overview section, item 2 says:</div>
<div><br>
</div>
<div><span
style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.7px">"Take
the closest existing RTL as a start, copy it and start
implementing"</span></div>
<div><font face="sans-serif" color="#000000"><span
style="font-size:12.7px"><br>
</span></font></div>
<div><font face="sans-serif" color="#000000"><span
style="font-size:12.7px">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?<br
clear="all">
</span></font>
<div><br>
</div>
</div>
</div>
</blockquote>
<p>That was written from the perspective of a new OS.</p>
<p>For adding a new architecture to an existing OS, probably the
files systems/i_bsd.pas and t_bsd.pas are the main files.</p>
<p>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.<br>
</p>
</body>
</html>