Re: the stack
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: 31 Dec 2007 14:59:43 +0200
"Rod Pemberton" <do_not_have@xxxxxxxxxxxxx> writes:
<bob@xxxxxxxxxxxxxx> wrote in message
news:f45b4608-fafa-4fd3-b73d-d34d84e4287d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I was just wondering why the stack grows downwards on x86 processors.
The short answer: it was designed that way.
The 8086 was compatible with the 8080. Stanley Mazor of the 8080 design
team designed the 8080 stack that way:
"Deleting the on-chip stack saved chip area, but was a net advantage to the
user -now the stack had unlimited size. I defined the stack as growing
downward from the high end of memory; this facilitated indexing into the
stack and simplified displaying the stack. This was abandoned on the 8086."
http://www.xnumber.com/xnumber/Microcomputer_invention.htm
By "abandoned ...," I think he means the stack was put back on-chip for the
8086.
Or does he mean that it being stuck at the high end of memory
was abandoned, as it could now reside in arbitrary locations?
Phil
--
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration
.
- Follow-Ups:
- Re: the stack
- From: Rod Pemberton
- Re: the stack
- References:
- the stack
- From: bob
- Re: the stack
- From: Rod Pemberton
- the stack
- Prev by Date: Re: Merry Christmas to All.
- Next by Date: Re: asm grep
- Previous by thread: Re: the stack
- Next by thread: Re: the stack
- Index(es):
Relevant Pages
|