Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #2660

Re: 8086 register allocation

From Hans-Peter Diettrich <DrDiettrich1@netscape.net>
Newsgroups comp.compilers
Subject Re: 8086 register allocation
Date 2021-05-11 03:35 +0200
Organization Compilers Central
Message-ID <21-05-008@comp.compilers> (permalink)
References <21-05-005@comp.compilers> <21-05-007@comp.compilers>

Show all headers | View raw


On 5/10/21 11:49 PM, gah4 wrote:

> It was also designed to have a virtual stack, which would spill to memory
> on overflow, and back on underflow.  That sounds nice, but it seems that
> no-one tried to write the interrupt routine before the hardware was built,
> and that it actually isn't possible.  It seems that it isn't possible to get some
> of the state bits set, such that it all works like a seamless virtual stack.

How efficient is a virtual stack? Did anybody try to use ordinary
(integral...) registers with interrupt driven spilling?

A stack machine is convenient for calculations. Before the stack
overflows the compiler can save intermediate results, as with any other
architecture of limited register count.

DoDi
[Normal stack machines have the top few entries in registers and do the
spilling to memory in hardware.  The x87 stack has 8 registers, which is
a lot for a stack machine, but the spilling was broken.   You can address
into the stack but you can't really use it as a register machine. -John]

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

8086 register allocation "Alexei A. Frounze" <alexfrunews@gmail.com> - 2021-05-09 14:28 -0700
  Re: 8086 register allocation Fernando <pronesto@gmail.com> - 2021-05-10 04:46 -0700
  Re: 8086 register allocation gah4 <gah4@u.washington.edu> - 2021-05-10 14:49 -0700
    Re: 8086 register allocation Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2021-05-11 03:35 +0200
      Re: 8086 register allocation gah4 <gah4@u.washington.edu> - 2021-05-10 21:19 -0700
      Re: 8086 register allocation Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2021-05-11 09:35 +0200
    Re: 8086 register allocation Thomas Koenig <tkoenig@netcologne.de> - 2021-05-11 06:44 +0000

csiph-web