Mail Archives: opendos/2000/11/25/20:09:37
On Sat, Nov 25, 2000 at 06:44:17AM -0700, Patrick Moran wrote:
> > >> PM> PROMPT [DRDOS] $P$G
> > >> PM> ^
> > >> PM> These can be loaded anytime. I did not notice any difference if I
> loaded
> > >> PM> them first.
> > >> PROMPT is not a program, this is substitute for SET PROMPT
> statement,
> > >> also as PATH is a substitute for SET PATH statement.
> > PM> Yes, I know. they do not use any memory, that is why they can be used
> at
> > PM> anytime.
> >
> > This statement _uses_ memory for consequent environment variable.
>
> Yes, but that is included in the env size you use in the CONFIG file, it is
> not extra memory that can interfere or fragment loading and memory.
Except that each program you run gets its own copy of the environment,
shrunk to the closest multiple of some value (sixteen bytes would make sense
since that is the size of a paragraph, but thirty-two rings a bell). So
putting stuff in the environment can make a difference when loading TSRs.
That's why the common recommendation is to load all TSRs before setting any
environment variables. If a TSR requires a variable, it should be set just
before that TSR is loaded and unset afterwards... Things vary from TSR to
TSR too since some release their environment while others don't.
(In the example which was being discussed, that wasn't an issue since all
the TSRs were loaded beforehand.)
I'd imagine (but I can't check just now) that the Interrupt List would have
all the gory details, possibly under the DOS EXEC function (interrupt 21h,
function 4Bh if I remember correctly) or the description of the PSP.
Stephen
- Raw text -