[fpc-pascal] Smart Link definition ?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri Oct 7 17:39:37 CEST 2016


On 2016-10-07 14:19, fredvs wrote:
> I can say that it tells the compiler to remove unneeded symbols but it is
> only my feeling.

Yes, that is pretty much what it does. At the linking stage the compiler
can determine what code is never used and exclude that from the binary -
normally with a huge reduction in executable size (for real-world
applications).

Here is the full description from the FPC Programmers Manual.

http://www.freepascal.org/docs-html/current/prog/progsu118.html#x126-1270001.3.35


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list