[fpc-pascal] Size of program vs library ?
Michael Van Canneyt
michael at freepascal.org
Tue May 16 10:57:27 CEST 2017
On Tue, 16 May 2017, Henry Vermaak wrote:
> On Tue, May 16, 2017 at 01:15:34AM -0700, fredvs wrote:
>> It works for all situations, so I propose that fpc add --gc-sections
>> as parameter for the linker if the user has used -XX parameter to
>> compile a library.
>
> Does it work for all situations? I remember a bug for the rust compiler
> that broke libraries when --gc-sections was used, because it removed the
> metadata that rust needed to load the library. One of the fpc devs can
> probably say whether fpc may have a similar problem.
You risk losing e.g. resources.
This is typically what needs to be investigated.
Michael.
More information about the fpc-pascal
mailing list