Re: ELF loading
- From: CodeMonk <jascwa@xxxxxxxxx>
- Date: Thu, 30 Aug 2007 06:45:59 -0400
rhyde@xxxxxxxxxx wrote:
On Aug 28, 9:08 am, CodeMonk <jas...@xxxxxxxxx> wrote:Betov wrote:
Then why not add static linking to your assembler? You may have noBecause i am not used to work for implementing stupidities,
reason to use it, but it will certainly please some
even when when people want it, clown.
This deficiency could be addressed by wrapping the requisite LIB in a
DLL and using the LoadLibrary and GetProcAddress API functions. An
annoyance to be sure, but it's the only viable work-around I see.
Mind you, most of this was in jest for Rene's benefit. Even so, I don't think anything said will alter his determination to stay on his present course. It might be somewhat misguided, from a real world perspective, but he's definitely sticking to his principle.
There are many bigger problems than just the annoyance.
First of all, there is the version problem (also known as "DLL Hell").
In this case I had the benefit of instituting the philosophy of everyone always has the current approved version of everything. Easy to do when you have the keys to the chicken coop and roll everything out while the brood is asleep. I realize that isn't practical, or even possible, in most situations.
Second, there is the issue of size: loading a DLL gets you *all* the
routines, not just the ones you actually call.
Of course, there is also the issue that functions in a DLL must be
called indirectly. Often, this is done by linking in an extra JMP
instruction (admittedly, not necessary, but many tools wind up doing
this).
Also, DLLs carve up your address space inconveniently. A problem if
you have huge memory allocations or you use (large) memory-mapped
files.
All good points and contributors to the annoyance :) There's also the potential for exception and thread handling issues if any of those DLL's have HLL runtime dependencies which may collide with the Win32-API way of doing things.
Static linking avoids all of these problems.
I don't dismiss Rene's approach outright, as I myself have been known to paste a function into a module rather than link with the entire library. But yes, the ability to statically link with modules or libraries that programmers have neither the time, nor possibly the capability to reinvent, is a basic premise in the real world.
- Scott
.
- Follow-Ups:
- Re: ELF loading
- From: //\\\\o//\\\\annabee
- Re: ELF loading
- From: Betov
- Re: ELF loading
- References:
- ELF loading
- From: cmk128
- Re: ELF loading
- From: Frank Kotler
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: Frank Kotler
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: Herbert Kleebauer
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: Herbert Kleebauer
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: Herbert Kleebauer
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: rhyde@xxxxxxxxxx
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: sevag.krikorian
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: sevag.krikorian
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: rhyde@xxxxxxxxxx
- Re: ELF loading
- From: Betov
- Re: ELF loading
- From: CodeMonk
- Re: ELF loading
- From: rhyde@xxxxxxxxxx
- ELF loading
- Prev by Date: Re: Gonzales, Another one bites the dust.
- Next by Date: Re: ELF loading
- Previous by thread: Re: ELF loading
- Next by thread: Re: ELF loading
- Index(es):
Relevant Pages
|