On 28 Dec 2006 at 15:56, Eric J Korpela wrote:
Sorry, have 5 minutes of spare time so I'm
catching up on topics in
reverse order. Are you putting the TCP/IP stack in a TSR (and want to
reduce memory there). Or is it the application that you are trying to
reduce memory use in? If the application, is it a .com file or a
.exe?
Back to my original suggestion. When I mentioned separating the
initialization and resident into two executables, I think most people
fell into the mental trap of "First you load the initializaion, do
it, then load the resident."
I think this is backward. Load the resident first, then execv() the
initialization, passing it pointers to whatever structures and data
are needed. After the initialization code terminates, it exits with
a normal exit() call and releases its memory, but control is returned
to the resident and the memory occupied by the initialization code is
freed.
Cheers,
Chuck