Re: will linker leave out unused symbols from binary?
From: David Harmon (source_at_netcom.com)
Date: 09/28/04
- Next message: Howard: "[OT] Re: Automatic Startup of Visual Studio"
- Previous message: Mani: "C++ and Dot Net Jobs"
- In reply to: Sam Smith: "will linker leave out unused symbols from binary?"
- Next in thread: QNils_O=2E_Sel=E5sdal=22?=: "Re: will linker leave out unused symbols from binary?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Sep 2004 18:04:53 GMT
On Tue, 28 Sep 2004 16:16:45 +0200 in comp.lang.c++, "Sam Smith"
<sam@smith.com> wrote,
>If I choose to build the executable directly with only relevant source
>files, I know I do not bloat the executable with symbols and functions that
>are never used.
A typical common behavior is that the linker will pull out of the
library any object file that is needed to satisfy a reference, and leave
out any object file that is completely unused, but it cannot split up
any object file and bring in part of it. For best results the library
must be built out of many small object files each containing the
smallest working subset of mutually dependent code and data.
Of course this is outside the scope of the C++ language and you must
read the fine manual of your particular implementation.
- Next message: Howard: "[OT] Re: Automatic Startup of Visual Studio"
- Previous message: Mani: "C++ and Dot Net Jobs"
- In reply to: Sam Smith: "will linker leave out unused symbols from binary?"
- Next in thread: QNils_O=2E_Sel=E5sdal=22?=: "Re: will linker leave out unused symbols from binary?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|