Re: Size of Exe file
On Nov 23, 12:46 am, Jorgen Grahn <grahn+n...@snipabacken.se> wrote:
On Sat, 22 Nov 2008 13:38:21 +0100, Thomas Beckmann
<ka6552-...@online.de> wrote:
Thank you, Thomas.
It's clear now.
One more question, how did you got to know these?
Are there some relative books or websites? So I can learn more rather
than know the basis.
Hard to say where I read these. I recall this was an
important topic in the late 90s, guess the MSDN magazine had
an article or two on the topic. Their website has an
archive. Also,http://www.ddj.comis a great source of
information and certainly the Exceptional C++ series of
Sutter I can recommend.
On my system, the linker's documentation (not surprisingly)
documents this.
Most of the linker documentation I've seen supposes that one
already knows the real basics: what a linker does (in general),
what a library is, etc. If you're really good, you can probably
deduce much of this from the linker documentation, but
typically, I'd hardly call it pedagogical material.
Just to be clear: it's a feature of the compiler/linker, not
the C++ language. I can imagine linkers which just pulls in
the needed parts out of the object files, in turned pulled
from the archives. Or systems without linkers, etc.
Yes and no. The standard does say at one point (phases of
compilation, phase 9) that "All external object and function
references are resolved. Library components are linked to
satisfy external references to functions and objects not defined
in the current translation. All such translator output is
collected into a program image which contains information needed
for execution in its execution environment." Which sounds
pretty much like a linker to me. And there are generally
established definitions, independently of the implementation (so
under Windows, a DLL is a type of object file, and not a
library, despite its name); the question per se isn't
implementation specific, even if a really detailed answer will
involve some implementation specific details.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34