Michael Abbott <[EMAIL PROTECTED]> writes:
>
> Fortunately Windows does not require position independent code for its
DLLs
> - indeed, under NT the constraints on a DLL are very few indeed, and just
> about any library can be routinely converted to a DLL without code
changes.
Which is good - the bad news is (AFAIK) that DLLs come hand in hand
with the stdcall calling convention in Win32, meaning that you have to use
the C stack for argument passing; there's no guarantee of registers not
being
clobbered while transferring control to a DLL entry point (I'd love to be
proven
wrong on this one!) This is definitely not what you want in STG land. So we
need a way of sufficiently abusing DLLs such that we don't have to give
up the use of registers completely, but still use them to chunk a program
into a bunch of dynamically loadable bits...
--Sigbjorn