#Stack
Chris,
Yes, the stack is automatic. That's why there's a STACK command so
you can set it's size (or the equivalent in a WB ICON for a program) so you
don't run out of it (with disastrous consequences) while a program is
running.
When a program is compiled, part of the compilation process is that
the necessary code for passing parameters, saving registers, etc. onto the
stack is automatic…in other words, the compiler does it since it's part
of the way languages are designed.
You can write code to directly use the stack yourself, but usually
that's not a good idea. Instead, you create your own private stack
(usually known as a 'heap') and use that as you will.
Oh…each process has it's own stack. Thus if you've got 3 things
running on your Amiga, there's 3 memory areas reserved…one for each
program…as their stacks.
Don