info-c digest v2n226
Rick Genter x18
reg at lti.com
Tue Oct 25 08:00:07 AEST 1988
> Can someone explain to me what the difference is between a hardware stack
> and a software stack?
The difference is that a machine with a hardware stack can dereference
the top of the stack and modify the stack pointer as an atomic operation
(usually via an addressing mode). A machine with "only" software stacks
must use multiple machine instructions to perform this operation; this
makes things hairy in the world of interrupt processing. Not impossible;
just hairy. An example is the IBM/370 architecture: there one uses
static saveareas for handling interruptions/exceptions. Yuck.
- reg
--
Rick Genter ...!{buita,bbn}!lti!reg
Language Technology, Inc. reg%lti.uucp at bu-it.bu.edu
27 Congress St., Salem, MA 01970 (508) 741-1507
More information about the Comp.lang.c
mailing list