| delorie.com/archives/browse.cgi | search |
| From: | gautier_niouzes AT hotmail DOT com (Gautier) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Object file linking |
| Date: | 10 Aug 2001 03:18:06 -0700 |
| Organization: | http://groups.google.com/ |
| Lines: | 16 |
| Message-ID: | <17cd177c.0108100218.59908ecb@posting.google.com> |
| References: | <emg6ntcnv2s3i3m3gqvsn4vs0lq7vj7hta AT 4ax DOT com> |
| NNTP-Posting-Host: | 194.40.39.20 |
| X-Trace: | posting.google.com 997438686 16377 127.0.0.1 (10 Aug 2001 10:18:06 GMT) |
| X-Complaints-To: | groups-abuse AT google DOT com |
| NNTP-Posting-Date: | 10 Aug 2001 10:18:06 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
J.W. Dare :
> Suppose I have an object file with quite a few function definitions.
> At compile time does all of the code in the object file get linked
> into the executable or just the code for the functions that are
> actually called by main.
You mean at link time, I suppose.
The standard linker does no unused code trimming.
There are source-based tools like gnatelim, and maybe a gnu
smart linker under work.
________________________________________________________
Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm
NB: Do not answer to sender address, visit the Web site!
Ne répondez pas à l'expéditeur, visitez le site ouaibe!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |