[fpc-devel] inline... and philosophy

Michael Van Canneyt michael at freepascal.org
Sat Nov 9 16:14:45 CET 2019



On Sat, 9 Nov 2019, J. Gareth Moreton wrote:

> Competitions aside, there are times where space is a premium, whether it be 
> from distributing an application on a DVD, bandwidth or data limits (even 
> some first world countries are still on dial-up in places, or are otherwise 
> monopolised by a single, bad-quality provider), the smaller capacity of 
> solid-state hard drives (especially on some laptops) and can otherwise be a 
> money saver sometimes.

I tend to think more size gains can be obtained from more aggressive smartlinking.
The smartlinking is sometimes disabled by the way code is written.

To give an example, pas2js has a switch to convert published to public sections. 
As a result, the published sections are suddenly reduced to what is actually used in code. 
This produces significant size gains.

Michael.


More information about the fpc-devel mailing list