[fpc-pascal] Duplicate RTLs
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Thu Jul 2 12:11:14 CEST 2015
Marco van de Voort wrote:
> In our previous episode, Adriaan van Os said:
>> Marco van de Voort wrote:
>>> Also RTTI like class info (not used over typinfo unit) like IS, AS, .InheritsFrom?
>>> IOW Objecttype identity operations.
>> Thanks for the info. I suggest to document this somewhere. But I am not
>> (in my own code projects) using RTTI, class info, FPC memory allocation,
>> reference counted types, exception catching or global variables. Which
>> explains that I never got in trouble there.
>
> Note various to/from string and date types use locale info that is also
> duplicated. Basically everything that uses RTL state + anything that uses
> compiler generated tables. (there is two times RTL state and there can be
> two copies of those compiler tables).
Plus if using the Lazarus IDE/LCL, you can have forms embedded in a DLL
(or unix .so) rather than in the main program. It's possible to copy
stuff between the two to e.g. merge menu structures: it takes work but
isn't particularly painful.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list