Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] GNUARM Linker Question

2004-05-03 by Dave Hylands

Hi James,

> Can GNUARM's linker (ld) be coaxed to remove functions that are never
referenced? 

The typical way this is done is to have the functions in a separate
object file. The GNU linker either pulls in an entire object file or
doesn't pull it in at all (typically from a library). Many runtime
libraries are strutured to compile the code such that one object file is
produced per function. They often put the functions in a single source
file, and use preprocessor directives to control which parts get
compiled.


--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.