<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bo Berglund via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> schrieb am Do., 24. Sep. 2020, 08:08:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 24 Sep 2020 07:53:24 +0200, Sven Barth via lazarus<br>
<<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank" rel="noreferrer">lazarus@lists.lazarus-ide.org</a>> wrote:<br>
<br>
>Bo Berglund via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank" rel="noreferrer">lazarus@lists.lazarus-ide.org</a>> schrieb am Mi., 23.<br>
>Sep. 2020, 21:13:<br>
><br>
>> So there seems to be a chain reaction concerning units involved in the<br>
>> application....<br>
>><br>
><br>
>If course there is. That's how the unit system is supposed to work after<br>
>all.<br>
><br>
Yes, I realize that now.<br>
<br>
It means that the client even though it will not interface to the<br>
hardware will have all of the code used to do that included in the<br>
app, right?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The compiler (and linker) only includes code that is used. Thus as long as you don't call the hardware functions anywhere in your program (this includes indirectly or through initialization/finalization sections) then the code won't be in the final binary either.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>