This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: LD being resource hungry while trying to achieve maximal dead-codeelimination
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Marco van de Voort <marcov at dragon dot stack dot nl>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 16 Jul 2003 21:57:14 -0400 (EDT)
- Subject: Re: LD being resource hungry while trying to achieve maximal dead-codeelimination
On Thu, 17 Jul 2003, Marco van de Voort wrote:
> I'm using FPC (www.freepascal.org), which has a mode (called smartlinking)
> that tries to achieve maximal (or at least several magnitudes more optimal)
> dead-code elimination by creating archives that contain a compilation unit
> per symbol.
> P.s. if people argue that this method is a dirty hack, I fully agree.
> Another way to achieve the same result would be appreciated. The hack is
> probably introduced years ago, maybe there is a better way meanwhile.
The equivalent of gcc -ffunction-sections -fdata-sections?
(But don't forget to also emit constants in separate sections,
unlike gcc.)
brgds, H-P