[fpc-pascal] Smart-linking versus Whole Program Optimization

Karoly Balogh charlie at scenergy.dfmk.hu
Thu Mar 11 00:43:12 CET 2021


Hi,

On Wed, 10 Mar 2021, Yuriy Sydorov via fpc-pascal wrote:

> > Neither parameter may be necessary on Windows, but that's probably the
> > only one.
>
> Android and MS-DOS targets also ignore -CX -XX

* when using the internal linker... :) External linkers may be supported
for these targets, just as for Windows. In this case smartlinking might
not be, or only supported in the old fashioned way.

Other targets: m68k doesn't have any internal assembler or linker, but at
least any target using the vasm/vlink assembler-liker combo also has
smartlinking enabled, using named sections in the assembler file, and
vlink's section garbage collection feature. (Similar to what recent GNU LD
has for ELF.)

This includes, Amiga, Atari, and the Sinclair QL at least. Some PowerPC
targets like AmigaOS 4, and MorphOS also supports it.

Charlie


More information about the fpc-pascal mailing list