Bo Berglund via lazarus <[email protected]> schrieb am Do., 24.
Sep. 2020, 08:08:

> On Thu, 24 Sep 2020 07:53:24 +0200, Sven Barth via lazarus
> <[email protected]> wrote:
>
> >Bo Berglund via lazarus <[email protected]> schrieb am Mi.,
> 23.
> >Sep. 2020, 21:13:
> >
> >> So there seems to be a chain reaction concerning units involved in the
> >> application....
> >>
> >
> >If course there is. That's how the unit system is supposed to work after
> >all.
> >
> Yes, I realize that now.
>
> It means that the client even though it will not interface to the
> hardware will have all of the code used to do that included in the
> app, right?
>

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.

Regards,
Sven
-- 
_______________________________________________
lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to