public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* LD: function-level linking
@ 2006-07-10  6:50 Tzu-Chien Chiu
  2006-07-10  8:15 ` Thiemo Seufer
  0 siblings, 1 reply; 7+ messages in thread
From: Tzu-Chien Chiu @ 2006-07-10  6:50 UTC (permalink / raw)
  To: binutils

Hello all.

I'm looking for a similar feature available in Visual C++.
Function-level linking.

In Visual C++, there is an option "/Gy" which enables "function-level
linking". That is, each function is packaged separately as a COMDAT,
and later the linker option "/OPT:REF" eliminates the COMDATs which
are never referenced.

FYI: http://msdn2.microsoft.com/en-us/library/bxwfs976.aspx

In this way, the entire object file won't have to be linked as a whole
when only one of the functions in it is referenced. It's preferred
linking for embedded system software. Not all libraries are design ed
as glibc, which has a separate file for each file, and it's sometimes
not easy or feasible to modify the source code of the libraries.

I can not find similar compiler and linker options in the GNU tool
chain. What I missed?

-- 
Tzu-Chien Chiu - SMedia Technology Corp.
URL: http://www.csie.nctu.edu.tw/~jwchiu/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-07-10 16:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-10  6:50 LD: function-level linking Tzu-Chien Chiu
2006-07-10  8:15 ` Thiemo Seufer
2006-07-10 14:37   ` Tzu-Chien Chiu
2006-07-10 14:44     ` Thiemo Seufer
2006-07-10 14:49       ` Tzu-Chien Chiu
2006-07-10 14:53         ` Tzu-Chien Chiu
2006-07-10 16:49     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).