[comp.sys.ibm.pc.hardware] stacks command in config.sys

kap@eng.cam.ac.uk (Kevin A.Price) (09/26/90)

Does anyone know what the STACKS command is used for in
the CONFIG.SYS file? 

How do you use it and how does it affect the operation of the 
PC?

Kev.

PS I'll post a summary if I get enough response. Promise!

louie@cellar.bae.bellcore.com (Paul Louie) (10/03/90)

In article <14593@rasp.eng.cam.ac.uk> kap@eng.cam.ac.uk (Kevin A.Price)
writes:

"Does anyone know what the STACKS command is used for in
the CONFIG.SYS file? 

How do you use it and how does it affect the operation of the 
PC?

Kev.

PS I'll post a summary if I get enough response. Promise!"

----------------------------------------------------------------------

Kev, 

The STACKS command is use for increasing or decreasing the size of
the environment stack.  You can look at the STACK as a special temporary
work space for saving values contained in a register.  When a program
wants to save a register's value it "push" it into the stack.  When the
value is needed again it "pop" it.  PUSH and POP are assembly language
instructions.  High level languages get translated (compiled) to these
instructions if the functions are required.  So, to summarize the STACK 
is a special workarea that let you save values of registers and keeps 
their order in a LIFO (last-in-first-out) manner.

Does this answer your question?


Paul