Re: .EXE -> .ASM -> .EXE
- From: "randyhyde@xxxxxxxxxxxxx" <randyhyde@xxxxxxxxxxxxx>
- Date: 27 Jun 2006 12:54:57 -0700
santosh wrote:
are bad; you're
operating under a serious misconception here.
I think they've been "scarred" by seeing certain statically linked
C/C++ executables. When you ask for static linking, sometimes the
entire libc is linked with your program resulting in a 800 kB hello
world demo. Similarly heavy use of templates can blow up a C++
executable to a megabyte or more.
That won't change with what they're trying to do, though. If a library
routine calls code in another library routine, which calls code in
another library routine, ..., etc., then you wind up bringing all the
code into your application. This is particularly troublesome with OOP
code, where the VMT often references every method/function in the
class, even if the code doesn't actually use it. Of course, this is not
the fault of the library, but of the original class design and a
"LibScanner" program won't solve this problem.
Of course runtime linking solves the problem...
That makes the size of the executable smaller, and allows other apps to
share the library in memory, but fundamentally you've still got to have
all the code in memory when the app runs.
Cheers,
Randy Hyde
.
- Follow-Ups:
- Re: .EXE -> .ASM -> .EXE
- From: santosh
- Re: .EXE -> .ASM -> .EXE
- From: Betov
- Re: .EXE -> .ASM -> .EXE
- References:
- Re: .EXE -> .ASM -> .EXE
- From: Dave -Turner
- Re: .EXE -> .ASM -> .EXE
- From: Betov
- Re: .EXE -> .ASM -> .EXE
- From: randyhyde@xxxxxxxxxxxxx
- Re: .EXE -> .ASM -> .EXE
- From: Betov
- Re: .EXE -> .ASM -> .EXE
- From: geletine
- Re: .EXE -> .ASM -> .EXE
- From: Betov
- Re: .EXE -> .ASM -> .EXE
- From: randyhyde@xxxxxxxxxxxxx
- Re: .EXE -> .ASM -> .EXE
- From: Betov
- Re: .EXE -> .ASM -> .EXE
- From: Mad_guy
- Re: .EXE -> .ASM -> .EXE
- From: Betov
- Re: .EXE -> .ASM -> .EXE
- From: randyhyde@xxxxxxxxxxxxx
- Re: .EXE -> .ASM -> .EXE
- From: Guga
- Re: .EXE -> .ASM -> .EXE
- From: randyhyde@xxxxxxxxxxxxx
- Re: .EXE -> .ASM -> .EXE
- From: Guga
- Re: .EXE -> .ASM -> .EXE
- From: randyhyde@xxxxxxxxxxxxx
- Re: .EXE -> .ASM -> .EXE
- From: santosh
- Re: .EXE -> .ASM -> .EXE
- Prev by Date: Re: .EXE -> .ASM -> .EXE
- Next by Date: Re: .EXE -> .ASM -> .EXE
- Previous by thread: Re: .EXE -> .ASM -> .EXE
- Next by thread: Re: .EXE -> .ASM -> .EXE
- Index(es):
Relevant Pages
|