[fpc-pascal] Size of program vs library ?

fredvs fiens at hotmail.com
Tue May 16 10:15:34 CEST 2017


noreply wrote
> On 2017-05-15 04:26, fredvs wrote:
>> After lot of fight, there is a solution: using -*-gc-sections*.
>> 
>> And the question was :
>> 
>> /Why FPC does not provide --gc-sections to the linker with the -XX 
>> paramer
>> for libraries ? (Bug ?) /
> 
> 
> Hopefully that's all there is to it, but how do you know that this 
> doesn't just work for your current code and is not reliable for all 
> situations?
> 
> If that's all there is too it, that's cool! But maybe fpc left it out 
> for a reason: like it only works in some test cases of libraries, but 
> not all test cases?
> _______________________________________________
> fpc-pascal maillist  -  

> fpc-pascal at .freepascal

> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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.

Fre;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Size-of-program-vs-library-tp5718200p5728600.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list