| When you say "STACK 10000", nothing happens to the CLI's stack.
The change comes when you actually run something from the CLI after
issuing that command.
When you run something under the CLI (usually by typing its program
name), the CLI will create a stack containing as many bytes as
specified by the STACK command (the last time it was issued), and
call the application using that stack. (Actually, I'm fibbing a
bit as some of this is hidden in the EXECUTE call and/or RUN command,
as well as other obscure and undocumented routines in dos.library.)
Thus, if you're running one of those memory monitor programs and
type "STACK {very large}", you'll note that the memory monitor will
show about the same memory usage as it did before you typed the
command (allowing for the memory used while "STACK" was running,
and released when STACK exits). Then when you actually run something,
you'll see the loss of memory indicating the size of the program
loaded as well as the size of the stack you asked for.
|