[fpc-devel] Delphi-like Packages, Plan
Florian Klämpfl
florian at freepascal.org
Sun Oct 3 22:48:21 CEST 2010
Am 03.10.2010 22:30, schrieb Marco van de Voort:
> In our previous episode, Hans-Peter Diettrich said:
>> [...]
>>> -K <File>[ <File>]*
>>> Command line arg to tell fpc to compile
>>> program/dll with runtime package support.
>>
>> I don't like the Delph all-or-nothing philosophy here. I'd prefer to
>> specify the packages, that shall be loaded at runtime, while all other
>> packages can be linked into the executable.
>
> Then if you have N packages, you need O(N^2) sets of compiled files? Since
> modules that have code for late binding are different then for early
> binding.
>
> I don't think this is very practical.
I fear also a lot of pitfalls with this possibility for example
executables using dyn. packages might be never smartlinked because it is
unknown at link time which packages will be loaded so all symbols of the
statically linked packages must be available.
More information about the fpc-devel
mailing list