delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/15/23:17:21

Date: Wed, 15 May 1996 23:12:42 -0400
From: dj (DJ Delorie)
Message-Id: <199605160312.XAA07094@delorie.com>
To: cjohns AT desertoak DOT awa DOT com DOT au
CC: A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk, DJGPP AT delorie DOT com
In-reply-to: <m0uJrcJ-001kAkC@desertoak.awa.com.au> (cjohns@desertoak.awa.com.au)
Subject: Re: Unused functions

> Does 'ld' support function level linking ?

No.  IBM's AIX linker does, but there's a lot of overhead involved.

> Would it be a good idea to support function level linking ?

Not for V2's libc, since we already manually split up the source files
to nearly eliminate unused functions from being linked in in the first
place.  It's easier to write the code that way than to teach the
linker to fix it for you.  Most code falls into one of two categories:

1. Part of a library.  Manually split the code into many sources once,
   and every user benefits.

2. Part of an application.  Hey, you're going to use them all anyway
   or you wouldn't have written them, right?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019