🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

61 total messages Page 1 of 2 Started by John Savard Sat, 24 Oct 2026 00:05
Page 1 of 2 • 61 total messages
Re: Why VAX Was the Ultimate CISC and Not RISC
#314
Author: John Savard
Date: Sat, 24 Oct 2026 00:05
24 lines
2148 bytes
On Sat, 1 Mar 2025 08:09:35 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote:

>The VAX project started roughly around the time the first RISC
>concepts were being researched. Could the VAX have been designed as a
>RISC architecture to begin with? Because not doing so meant that, just
>over a decade later, RISC architectures took over the “real computer”
>market and wiped the floor with DEC’s flagship architecture,
>performance-wise.
>
>The answer was no, the VAX could not have been done as a RISC
>architecture. RISC wasn’t actually price-performance competitive until
>the latter 1980s:

Shall we then conclude that DEC did everything right, because later on
after the VAX, DEC came up with the Alpha, which was RISC, and which
was the highest-performing chip of its day?

Well, not everything. The Alpha was so expensive as to be a dismal
failure in the market. However, it was either good enough, or
well-documented enough, for some Chinese efforts at home-grown
computer design to have copied it.

John Savard
Re: Why VAX Was the Ultimate CISC and Not RISC
#324
Author: MitchAlsup
Date: Sat, 24 Oct 2026 19:28
49 lines
2853 bytes
quadibloc@invalid.com (John Savard) posted:

> /ERROR "unexpected byte sequence starting at index 348: '\xE2'" while decoding/:
> 
> On Sat, 1 Mar 2025 08:09:35 -0000 (UTC), Lawrence D'Oliveiro
> <ldo@nz.invalid> wrote:
> 
> >The VAX project started roughly around the time the first RISC
> >concepts were being researched.

I remember walking by a CS conference room 1973-ish and listening to
a bunch of people (including Bill Wolfe and Aho) at Carnegie Mellon.
The discussion was about a follow on to the PDP-11 architectures
and what additional address modes should go in or not.

So, my memory is that VAX was being fleshed out at least 7 years
before RISC got started.

>                                  Could the VAX have been designed as a
> >RISC architecture to begin with?

Not with the players involved. Now, if Thronton or Seymore was at CMU
then maybe.

>                                   Because not doing so meant that, just
> >over a decade later, RISC architectures took over the “real computer”
> >market and wiped the floor with DEC’s flagship architecture,
> >performance-wise.
> >
> >The answer was no, the VAX could not have been done as a RISC
> >architecture. RISC wasn’t actually price-performance competitive until
> >the latter 1980s:

Once compilers made significant growth in optimization, and sufficient
silicon area became available.
 
> Shall we then conclude that DEC did everything right, because later on
> after the VAX, DEC came up with the Alpha, which was RISC, and which
> was the highest-performing chip of its day?

The commercial success of VAX delayed Alpha--no doubt about that. So, I
contend, DEC misplayed that card.
 
> Well, not everything. The Alpha was so expensive as to be a dismal
> failure in the market. However, it was either good enough, or
> well-documented enough, for some Chinese efforts at home-grown
> computer design to have copied it.
> 
> John Savard
Re: Why VAX Was the Ultimate CISC and Not RISC
#327
Author: Thomas Koenig
Date: Sat, 24 Oct 2026 20:42
49 lines
3136 bytes
On 2026-10-24, MitchAlsup <user5857@newsgrouper.org.invalid> wrote:
> quadibloc@invalid.com (John Savard) posted:
>
>> /ERROR "unexpected byte sequence starting at index 348: '\xE2'" while decoding/:
>> 
>> On Sat, 1 Mar 2025 08:09:35 -0000 (UTC), Lawrence D'Oliveiro
>> <ldo@nz.invalid> wrote:
>> 
>> >The VAX project started roughly around the time the first RISC
>> >concepts were being researched.
>
> I remember walking by a CS conference room 1973-ish and listening to
> a bunch of people (including Bill Wolfe and Aho) at Carnegie Mellon.
> The discussion was about a follow on to the PDP-11 architectures
> and what additional address modes should go in or not.
>
> So, my memory is that VAX was being fleshed out at least 7 years
> before RISC got started.

The 801 certainly counts, but it was certainly not mainstream at
the time.

>
>>                                  Could the VAX have been designed as a
>> >RISC architecture to begin with?
>
> Not with the players involved. Now, if Thronton or Seymore was at CMU
> then maybe.
>
>>                                   Because not doing so meant that, just
>> >over a decade later, RISC architectures took over the ??????real computer??????
>> >market and wiped the floor with DEC??????s flagship architecture,
>> >performance-wise.
>> >
>> >The answer was no, the VAX could not have been done as a RISC
>> >architecture. RISC wasn??????t actually price-performance competitive until
>> >the latter 1980s:
>
> Once compilers made significant growth in optimization, and sufficient
> silicon area became available.

Again, the 801 proved that it could be done.  I think they also
invented graph coloring for register allocation, or if they did
not invent it, they certainly used it.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: Why VAX Was the Ultimate CISC and Not RISC
#329
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:20
13 lines
1858 bytes
On Sat, 24 Oct 2026 19:28:02 GMT, MitchAlsup wrote:

> The commercial success of VAX delayed Alpha--no doubt about that.
> So, I contend, DEC misplayed that card.

But DEC did bring out their first Unix-based RISC product in 1989 --
the MIPS-based DECstation. But there was still internal feuding
between the “Unix Is Snake Oil” camp (led by Ken Olsen himself) and
the “Customers Want An Open OS” camp, which prevented the company
committing wholesale to the latter viewpoint.

The holdouts were not completely neutralized until Ken Olsen’s time as
CEO came to an end.
Re: Why VAX Was the Ultimate CISC and Not RISC
#330
Author: MitchAlsup
Date: Sat, 24 Oct 2026 23:33
20 lines
1808 bytes
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> posted:

> On Sat, 24 Oct 2026 19:28:02 GMT, MitchAlsup wrote:
> 
> > The commercial success of VAX delayed Alpha--no doubt about that.
> > So, I contend, DEC misplayed that card.
> 
> But DEC did bring out their first Unix-based RISC product in 1989 --
> the MIPS-based DECstation. But there was still internal feuding
> between the “Unix Is Snake Oil” camp (led by Ken Olsen himself) and
> the “Customers Want An Open OS” camp, which prevented the company
> committing wholesale to the latter viewpoint.
> 
> The holdouts were not completely neutralized until Ken Olsen’s time as
> CEO came to an end.

Faced the same war at Motorola where the factory and 68K design team
(150+ people) waged war on 88K design team (22) with the same conclusion::

Moto is no longer in the CPU game.
Re: Why VAX Was the Ultimate CISC and Not RISC
#336
Author: EricP
Date: Sun, 25 Oct 2026 16:56
128 lines
6427 bytes
On 2026-Oct-24 15:28, MitchAlsup wrote:
> quadibloc@invalid.com (John Savard) posted:
> 
>> /ERROR "unexpected byte sequence starting at index 348: '\xE2'" while decoding/:
>>
>> On Sat, 1 Mar 2025 08:09:35 -0000 (UTC), Lawrence D'Oliveiro
>> <ldo@nz.invalid> wrote:
>>
>>> The VAX project started roughly around the time the first RISC
>>> concepts were being researched.
> 
> I remember walking by a CS conference room 1973-ish and listening to
> a bunch of people (including Bill Wolfe and Aho) at Carnegie Mellon.
> The discussion was about a follow on to the PDP-11 architectures
> and what additional address modes should go in or not.
> 
> So, my memory is that VAX was being fleshed out at least 7 years
> before RISC got started.

According to one of Gordon Bell's web pages
the VAX project was officially started on 1-Apr-1975.
The VAX 780 product was introduced in Oct 1977.

Recall my prior post of the article from Electronics about memory prices
circa 1973 being about 10 cents per byte (in 1973 cents) as that would
strongly influence any architecture and ISA design decisions.

Also in 1975 DEC introduced the LSI-11 product built from a 3 chip set
MCP-1600 from Western Digital in 7u NMOS process at 3.3MHz (300ns microcycle).
https://simh.trailing-edge.com/semi/lsi11.html
https://en.wikipedia.org/wiki/PDP-11#LSI-11_integrated_circuits
https://en.wikipedia.org/wiki/MCP-1600

So circa 1975 DEC had access to NMOS chip technology similar to 8080
if they had chosen to use it for a risc-VAX.

>>> RISC architecture to begin with?
> 
> Not with the players involved. Now, if Thronton or Seymore was at CMU
> then maybe.
> 
>>                                    Because not doing so meant that, just
>>> over a decade later, RISC architectures took over the “real computer”
>>> market and wiped the floor with DEC’s flagship architecture,
>>> performance-wise.
>>>
>>> The answer was no, the VAX could not have been done as a RISC
>>> architecture. RISC wasn’t actually price-performance competitive until
>>> the latter 1980s:

I disagree. As I mentioned above, the 1975 price of memory would be a
strong consideration. Compared to a variable length ISA of 2.5 to 3 bytes
average, a fixed length 4-byte ISA would waste 1 to 1.5 bytes per instruction.
I believe one could build a variable length instruction fetch/parse using
standard 1975 TTL parts that can sustain 1 clock per instruction at 5 MHz.
After that, just keep the instructions simple like risc so they decode easily.

That gives one the compact instruction size similar to cisc,
with the uArch design simplicity a risc decode and execute,
and performance of a pipelined processor.

You need to also consider R&D cost and time to market.

- IIRC I read someplace that VAX-780 design cost 300 man-years over 3 years.

- Looking at Hennessy's project notes for the Stanford MIPS,
and filtering out tool developments costs,
MIPS-1 design cost about 2 engineers working for 6 months.

> Once compilers made significant growth in optimization, and sufficient
> silicon area became available.

By 1982 DEC research showed that VAX compilers only used 50 to 60 of its
304 instructions and 3 or 4 of its address modes.
See "A Case Study of VAX-11 Instruction Set Usage For Compiler Execution", 1982.

So compilers were already emitting risc-ish code.

>> Shall we then conclude that DEC did everything right, because later on
>> after the VAX, DEC came up with the Alpha, which was RISC, and which
>> was the highest-performing chip of its day?
> 
> The commercial success of VAX delayed Alpha--no doubt about that. So, I
> contend, DEC misplayed that card.

During the 1980's DEC had multiple proposals and projects floating
around internally but failed to capitalize on any of them.

There was the risc-ish Titan project circa 1982.

Titan System Manual 1986 WRL-86-1
https://www.bitsavers.org/pdf/dec/tech_reports/WRL-86-1.pdf

"The Titan project was begun as the initial project of the Western Research
Laboratory in April of 1982. The most obvious milestones were the following:
Apr 1982 Project begins
Mar 1983 CPU logic simulation
Oct 1984 CPU executing with toy memory system
May 1985 CPU executing with real memory system
Jun 1985 I/O starts working
Dec 1985 Complete system with all I/O running Unix"

"The first implementation of Titan is in 100K ECL, with a 45 nanosecond cycle time
and 13 cycle cache miss penalty. The central processor has a four-stage pipeline
with a peak instruction issue rate of one per cycle. Due to cache misses and
pipeline stalls, a new instruction is typically issued every 1.5 cycles."

There were internal proposals to switch to an internal risc engine:

VOR: VAX on a RISC.
Internal memo, Digital Systems Research Center, December 1984
https://bwlampson.site/35a-VOR/35a-VORAbstract.html

Ideas for a simple fast VAX.
Internal memo, Digital Systems Research Center, October 1985
https://bwlampson.site/35b-IdeasFastVAX/35b-IdeasFastVAXAbstract.html

DEC PRISM (Parallel Reduced Instruction Set Machine) was circa 1988
https://en.wikipedia.org/wiki/DEC_PRISM

>   
>> Well, not everything. The Alpha was so expensive as to be a dismal
>> failure in the market. However, it was either good enough, or
>> well-documented enough, for some Chinese efforts at home-grown
>> computer design to have copied it.
>>
>> John Savard
Re: Why VAX Was the Ultimate CISC and Not RISC
#339
Author: John Levine
Date: Sun, 25 Oct 2026 18:42
24 lines
2473 bytes
According to EricP  <ThatWouldBeTelling@thevillage.com>:
>Recall my prior post of the article from Electronics about memory prices
>circa 1973 being about 10 cents per byte (in 1973 cents) as that would
>strongly influence any architecture and ISA design decisions.

Yes, they guessed wrong about the trajectory of memory prices.

I think they also had an implicit assumption that ROM would always be
faster than RAM so the cost of interpreting microcode would be low.

And they totally missed that people would stop writing systems code in assembler
and switch to higher level languages like C or PL/S or BLISS or Burroughs Algol.
The IBM 801 project was going on at the same time, with the compiler and the
computer developed together. The 801 was a RISC largely because that was the
code that the PL.8 compiler generated.

I recall reading somwhere that when they wrote a S/360 code generator
for PL.8, its code ran much faster than the regular PL/I compilers because
it mostly used a RISC-ish subset of the 360 instruction set that ran fast.

-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Re: Why VAX Was the Ultimate CISC and Not RISC
#341
Author: Thomas Koenig
Date: Sun, 25 Oct 2026 20:03
23 lines
2266 bytes
John Levine <johnl@taugh.com> schrieb:
> The 801 was a RISC largely because that was the
> code that the PL.8 compiler generated.

They chose the RISC design based on their studies of generated code,
and then co-developed the ISA and the compiler together.

What I particularly liked is the way they simulated their machine.
Apparently, they had a /370 at their disposal and replaced the 801
instructions, on the fly, with equivalend 32-bit instructions for
the /370, which made for much faster execution than pure emulation.

> I recall reading somwhere that when they wrote a S/360 code generator
> for PL.8, its code ran much faster than the regular PL/I compilers because
> it mostly used a RISC-ish subset of the 360 instruction set that ran fast.

Graph coloring for register allocation also played a large role,
from what I read.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: Why VAX Was the Ultimate CISC and Not RISC
#347
Author: Stefan Monnier
Date: Mon, 26 Oct 2026 03:36
18 lines
2108 bytes
EricP [2026-10-25 12:56:55] wrote:
> On 2026-Oct-24 15:28, MitchAlsup wrote:
>> Once compilers made significant growth in optimization, and sufficient
>> silicon area became available.
[...]
> So compilers were already emitting risc-ish code.

Yeah, IIUC the need to have better compilers wasn't because
compiler-generated RISC code would not be competitive with
compiler-generated CISC code, but because CISC assembler was supposed to
be comfortable whereas RISC assembler was supposed to be painful to use,
so RISC would be palatable only if exposure to assembler was reduced
(hence the need for better compilers).

The old "semantic gap" argument.


=== Stefan
Re: Why VAX Was the Ultimate CISC and Not RISC
#356
Author: Anton Ertl
Date: Mon, 26 Oct 2026 18:06
22 lines
2069 bytes
quadibloc@invalid.com (John Savard) writes:
>Shall we then conclude that DEC did everything right, because later on
>after the VAX, DEC came up with the Alpha, which was RISC, and which
>was the highest-performing chip of its day?

If DEC did everything right, why is there no DEC now?

>Well, not everything. The Alpha was so expensive as to be a dismal
>failure in the market.

They did not sell as many as they needed, and they were more expensive
than Intel-based PCs, and eventually Intel and AMD ate all the RISCs
in general-purpose computing, except, probably thanks to iSeries,
Power.  Price may have had to do with it.

The fact that Intel and AMD could ramp up the speed faster than Alpha
probably was the nail in the coffin.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Why VAX Was the Ultimate CISC and Not RISC
#357
Author: Anton Ertl
Date: Mon, 26 Oct 2026 18:19
25 lines
2304 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>quadibloc@invalid.com (John Savard) posted:
>>                                  Could the VAX have been designed as a
>> >RISC architecture to begin with?
>
>Not with the players involved. Now, if Thronton or Seymore was at CMU
>then maybe.

The 801 was designed at around the same time as the VAX 11/780, and
the CDC6600 had been designed more than a decade earlier.  EricP has
reported on his design of a RISC with the kind of technology that the
VAX was built from.  It's pretty obvious that it was possible, and it
is even more obvious that the VAX architects did not do it.

>Once compilers made significant growth in optimization, and sufficient
>silicon area became available.

RISCs are already faster without additional compiler optimization.
Good register allocation is necessary to avoid a large code size
penalty, however, and that was an issue when the VAX started.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Why VAX Was the Ultimate CISC and Not RISC
#358
Author: Anton Ertl
Date: Mon, 26 Oct 2026 18:33
42 lines
2924 bytes
Thomas Koenig <tkoenig@netcologne.de> writes:
>Again, the 801 proved that it could be done.  I think they also
>invented graph coloring for register allocation, or if they did
>not invent it, they certainly used it.

Graph coloring register allocation was indeed developed in connection
with the 801 project (note that John Cocke coauthored the paper
[chaitin+81]).

However, graph coloring register allocation is not necessary for a
RISC to outperform the VAX 11/780, pipelining is enough.  The Berkeley
RISC people were a hardware group and did not do optimizing compilers.

HPPA originally used some PCC variant (no graph coloring register
allocation or any other sophisticated optimization) as C compiler, and
gcc outperformed HP's compiler by a wide margin when it appeared.  Yet
HPPA outperformed HP's CISC offerings by a wide margin, too.

The only groups that did much with compilers in early RISC history are
the IBM 801 group and the Stanford MIPS group.

@Article{chaitin+81,
  author = 	"Gregory J. Chaitin and Marc A. Auslander and Ashok K.
		 Chandra and John Cocke and Martin E. Hopkins and
		 Peter W. Markstein",
  title = 	"Register Allocation via Coloring",
  journal = 	complang,
  year = 	"1981",
  volume = 	"6",
  number = 	"1",
  pages = 	"45--57",
  note	=	"Reprinted in \cite{stallings90}",
  annote = 	"The seminal paper on coloring register allocation.
		 The spill code generation differs much from Chaitins
		 later paper and reminds me of hierarchical graph
		 coloring."
}

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Why VAX Was the Ultimate CISC and Not RISC
#360
Author: Anton Ertl
Date: Mon, 26 Oct 2026 18:46
28 lines
2792 bytes
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>Yeah, IIUC the need to have better compilers wasn't because
>compiler-generated RISC code would not be competitive with
>compiler-generated CISC code, but because CISC assembler was supposed to
>be comfortable whereas RISC assembler was supposed to be painful to use,
>so RISC would be palatable only if exposure to assembler was reduced
>(hence the need for better compilers).

RISC assembly languages are not painful; on the contrary, they are
relatively easy.  I can imagine that assembly programmers resented the
devaluing of their skill of making good use of the addressing modes,
and CISCy features of an instruction set.  Instead, delay slots meant
that a new skill had to be learned for some assembly languages.  The
MIPS assembler took care of the delay slots, however.

Anyway, as memories grew, high-level languages gained relevance.
RISCs have a performance advantage over VAX-11/780 in assembly
language, with simple compilers, and with optimizing compilers, thanks
to pipelining (and the 11/780's high CPI).  The memory consumption
with simple compilers may have resulted in bad code density for a
RISCy VAX, and that would have delayed the moved to high-level
languages by a short while, but I still think that a RISCy VAX would
have been better for DEC and their customers.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Why VAX Was the Ultimate CISC and Not RISC
#359
Author: Scott Lurndal
Date: Mon, 26 Oct 2026 18:53
21 lines
1780 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>quadibloc@invalid.com (John Savard) writes:
>>Shall we then conclude that DEC did everything right, because later on
>>after the VAX, DEC came up with the Alpha, which was RISC, and which
>>was the highest-performing chip of its day?
>
>If DEC did everything right, why is there no DEC now?
>
>>Well, not everything. The Alpha was so expensive as to be a dismal
>>failure in the market.
>
>They did not sell as many as they needed, and they were more expensive
>than Intel-based PCs, and eventually Intel and AMD ate all the RISCs
>in general-purpose computing, except, probably thanks to iSeries,
>Power.  Price may have had to do with it.
>
>The fact that Intel and AMD could ramp up the speed faster than Alpha
>probably was the nail in the coffin.

Alpha's weak memory model didn't help sell chips, either.
Re: Why VAX Was the Ultimate CISC and Not RISC
#362
Author: John Levine
Date: Mon, 26 Oct 2026 19:56
17 lines
1969 bytes
It appears that Anton Ertl <anton@mips.complang.tuwien.ac.at> said:
>However, graph coloring register allocation is not necessary for a
>RISC to outperform the VAX 11/780, pipelining is enough.  The Berkeley
>RISC people were a hardware group and did not do optimizing compilers.

They sure didn't.  They invented register windows because PCC's
register allocator saved and restored lots of registers around
every call, and the windows made that faster.  On the 801, they
just saved what they needed to so they didn't even have load or
store multiple.



-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Re: Why VAX Was the Ultimate CISC and Not RISC
#365
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 21:29
31 lines
3028 bytes
On 10/26/2026 11:46 AM, Anton Ertl wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Yeah, IIUC the need to have better compilers wasn't because
>> compiler-generated RISC code would not be competitive with
>> compiler-generated CISC code, but because CISC assembler was supposed to
>> be comfortable whereas RISC assembler was supposed to be painful to use,
>> so RISC would be palatable only if exposure to assembler was reduced
>> (hence the need for better compilers).
> 
> RISC assembly languages are not painful; on the contrary, they are
> relatively easy.  I can imagine that assembly programmers resented the
> devaluing of their skill of making good use of the addressing modes,
> and CISCy features of an instruction set.  Instead, delay slots meant
> that a new skill had to be learned for some assembly languages.  The
> MIPS assembler took care of the delay slots, however.

Fwiw, never put a MEMBAR instruction in a delay slot on SPARC.


> 
> Anyway, as memories grew, high-level languages gained relevance.
> RISCs have a performance advantage over VAX-11/780 in assembly
> language, with simple compilers, and with optimizing compilers, thanks
> to pipelining (and the 11/780's high CPI).  The memory consumption
> with simple compilers may have resulted in bad code density for a
> RISCy VAX, and that would have delayed the moved to high-level
> languages by a short while, but I still think that a RISCy VAX would
> have been better for DEC and their customers.
> 
> - anton
Re: Why VAX Was the Ultimate CISC and Not RISC
#367
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 21:30
24 lines
2396 bytes
On 10/26/2026 11:53 AM, Scott Lurndal wrote:
> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> quadibloc@invalid.com (John Savard) writes:
>>> Shall we then conclude that DEC did everything right, because later on
>>> after the VAX, DEC came up with the Alpha, which was RISC, and which
>>> was the highest-performing chip of its day?
>>
>> If DEC did everything right, why is there no DEC now?
>>
>>> Well, not everything. The Alpha was so expensive as to be a dismal
>>> failure in the market.
>>
>> They did not sell as many as they needed, and they were more expensive
>> than Intel-based PCs, and eventually Intel and AMD ate all the RISCs
>> in general-purpose computing, except, probably thanks to iSeries,
>> Power.  Price may have had to do with it.
>>
>> The fact that Intel and AMD could ramp up the speed faster than Alpha
>> probably was the nail in the coffin.
> 
> Alpha's weak memory model didn't help sell chips, either.
> 

Alpha was a little too weak...
Re: Why VAX Was the Ultimate CISC and Not RISC
#366
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 21:32
29 lines
2637 bytes
On 10/26/2026 2:30 PM, Chris M. Thomasson wrote:
> On 10/26/2026 11:53 AM, Scott Lurndal wrote:
>> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>>> quadibloc@invalid.com (John Savard) writes:
>>>> Shall we then conclude that DEC did everything right, because later on
>>>> after the VAX, DEC came up with the Alpha, which was RISC, and which
>>>> was the highest-performing chip of its day?
>>>
>>> If DEC did everything right, why is there no DEC now?
>>>
>>>> Well, not everything. The Alpha was so expensive as to be a dismal
>>>> failure in the market.
>>>
>>> They did not sell as many as they needed, and they were more expensive
>>> than Intel-based PCs, and eventually Intel and AMD ate all the RISCs
>>> in general-purpose computing, except, probably thanks to iSeries,
>>> Power.  Price may have had to do with it.
>>>
>>> The fact that Intel and AMD could ramp up the speed faster than Alpha
>>> probably was the nail in the coffin.
>>
>> Alpha's weak memory model didn't help sell chips, either.
>>
> 
> Alpha was a little too weak...

It was interesting to me that Windows can run on an Alpha:

https://betawiki.net/wiki/Draft:Installing_Windows_NT_on_DEC_Alpha
Re: Why VAX Was the Ultimate CISC and Not RISC
#226
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 22:13
21 lines
2190 bytes
On Mon, 26 Oct 2026 18:06:04 GMT, Anton Ertl wrote:

> If DEC did everything right, why is there no DEC now?

It was a company run by engineers, not businesspeople. They were
bright engineers, who pioneered a lot of things in their early days,
but they were less appreciative of innovations coming into their
market from other directions (Unix, and of course the IBM PC and
friends).

> The fact that Intel and AMD could ramp up the speed faster than
> Alpha probably was the nail in the coffin.

Or indeed, faster than PowerPC, which Apple were using at around that
time.

I used to tell people that Intel was spending 10× on developing x86
what IBM/Motorola were putting into developing PowerPC. But then, they
were also earning 10× as much revenue from x86 chips, so they could
afford it. The result was, the inferior technology was winning in the
marketplace, just due to the sheer laws of economics.
Re: Why VAX Was the Ultimate CISC and Not RISC
#225
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 22:16
15 lines
2087 bytes
On Mon, 26 Oct 2026 14:32:48 -0700, Chris M. Thomasson wrote:

> It was interesting to me that Windows can run on an Alpha:
>
> https://betawiki.net/wiki/Draft:Installing_Windows_NT_on_DEC_Alpha

All part of the original plan, didn’t you know? NT was designed at the
beginning to be a portable OS, able to run on a range of architectures
-- development actually started, not on x86, but on MIPS. It even had
a “personality” system, where the Win32 API was just one “personality”
that could be exposed to userland; there were plans to support others.

In the end, the portability of a proprietary OS proved too expensive
to maintain. A few non-x86 ports did ship for a while, but none lasted
for long.
Re: Why VAX Was the Ultimate CISC and Not RISC
#376
Author: Thomas Koenig
Date: Tue, 27 Oct 2026 06:31
19 lines
2139 bytes
John Levine <johnl@taugh.com> schrieb:
> It appears that Anton Ertl <anton@mips.complang.tuwien.ac.at> said:
>>However, graph coloring register allocation is not necessary for a
>>RISC to outperform the VAX 11/780, pipelining is enough.  The Berkeley
>>RISC people were a hardware group and did not do optimizing compilers.
>
> They sure didn't.  They invented register windows because PCC's
> register allocator saved and restored lots of registers around
> every call, and the windows made that faster.  On the 801, they
> just saved what they needed to so they didn't even have load or
> store multiple.

They had subroutines for register save and restore, which of course
helps code density, but is a bit... iffy.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: Why VAX Was the Ultimate CISC and Not RISC
#380
Author: John Dallman
Date: Tue, 27 Oct 2026 08:18
18 lines
1498 bytes
In article <11bogu0$10307$1@dont-email.me>, chris.m.thomasson.1@gmail.com
(Chris M. Thomasson) wrote:

> It was interesting to me that Windows can run on an Alpha:
> 
> https://betawiki.net/wiki/Draft:Installing_Windows_NT_on_DEC_Alpha

It worked fine. My employers supported it for several years. It had
customers because it was the fastest Windows platform, for a while. It
lost that position when Intel and AMD were competing on raw clock speeds
and running through their growth space much faster than they'd wanted to.


Once Compaq bought DEC, there was little development funding for Alpha.
Once HP bought Compaq there was none, because HP was focused on Itanium,
and sold the Alpha IP to Intel. 

John 
Re: Why VAX Was the Ultimate CISC and Not RISC
#382
Author: MitchAlsup
Date: Tue, 27 Oct 2026 16:41
28 lines
2133 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
> >quadibloc@invalid.com (John Savard) posted:
> >>                                  Could the VAX have been designed as a
> >> >RISC architecture to begin with?
> >
> >Not with the players involved. Now, if Thronton or Seymore was at CMU
> >then maybe.
> 
> The 801 was designed at around the same time as the VAX 11/780, and
> the CDC6600 had been designed more than a decade earlier.  EricP has
> reported on his design of a RISC with the kind of technology that the
> VAX was built from.  It's pretty obvious that it was possible, and it
> is even more obvious that the VAX architects did not do it.
> 
> >Once compilers made significant growth in optimization, and sufficient
> >silicon area became available.
> 
> RISCs are already faster without additional compiler optimization.

If 1983 compilers were still at the -O1 level, RISC may have failed.
Luckily they were at -O2 at that time, and did.

> Good register allocation is necessary to avoid a large code size
> penalty, however, and that was an issue when the VAX started.
> 
> - anton
Re: Why VAX Was the Ultimate CISC and Not RISC
#384
Author: MitchAlsup
Date: Tue, 27 Oct 2026 16:58
21 lines
1978 bytes
Thomas Koenig <tkoenig@netcologne.de> posted:

> John Levine <johnl@taugh.com> schrieb:
> > It appears that Anton Ertl <anton@mips.complang.tuwien.ac.at> said:
> >>However, graph coloring register allocation is not necessary for a
> >>RISC to outperform the VAX 11/780, pipelining is enough.  The Berkeley
> >>RISC people were a hardware group and did not do optimizing compilers.
> >
> > They sure didn't.  They invented register windows because PCC's
> > register allocator saved and restored lots of registers around
> > every call, and the windows made that faster.  On the 801, they
> > just saved what they needed to so they didn't even have load or
> > store multiple.
> 
> They had subroutines for register save and restore, which of course
> helps code density, but is a bit... iffy.

So iffy that essentially nobody does register windows anymore.
The compiler is at least as good at it as an exception-called
save/restore machine. {Both V8 and V9}
 
Re: Why VAX Was the Ultimate CISC and Not RISC
#241
Author: John Ames
Date: Tue, 27 Oct 2026 17:04
43 lines
3744 bytes
On Mon, 26 Oct 2026 22:16:43 -0000 (UTC)
Lawrence D’Oliveiro <ldo@nz.invalid> wrote:

> All part of the original plan, didn’t you know? NT was designed at the
> beginning to be a portable OS, able to run on a range of architectures
> -- development actually started, not on x86, but on MIPS. It even had
> a “personality” system, where the Win32 API was just one “personality”
> that could be exposed to userland; there were plans to support others.
> 
> In the end, the portability of a proprietary OS proved too expensive
> to maintain. A few non-x86 ports did ship for a while, but none lasted
> for long.

Yeah, multiarchitecture NT was a neat idea, but they whiffed on some
essentials, the time wasn't really right, and they never gave it quite
the effort it needed, or the marketing push. The core work of getting
it up and running on the various RISC platforms was handled well; 2k
RC1 runs as stably on Alpha as it does on a comparable P2 rig...

...but AFAIK Alpha was the only architecture they developed an x86
translation layer for ('til ARM64, decades later.) So on e.g. PPC or
MIPS you were limited to the set of applications whose developers felt
like providing a native build, which wasn't helped by the fact that M$
sold separate RISC editions of Visual Studio. (I still have the copy of
VB5 from the brief period where $EMPLOYER toyed with Alpha support.)

Moreover, they didn't provide anything like the "fat binary" formats
used by e.g. Apple or NeXT, so even shipping native builds for multiple
architectures was a non-trivial thing; nor was there a shared virtual-
machine platform developers could target UCSD-style, even though MS had
experience with that since the first versions of Visual Basic.

(Granted, performance on VM platforms was even more lackluster in those
days, before the advent of JIT techniques etc., but a slower version of
an application is, in most cases, better than none at all.)

It's also a good question how much demand there was for cross-platform
RISC support at the time - how many Windows users *really* needed to be
on the bleeding edge of performance that bad? - but MS's attitude that
their job was done when the OS was up and running sure didn't help.
Re: Why VAX Was the Ultimate CISC and Not RISC
#244
Author: Roman Belenov
Date: Tue, 27 Oct 2026 17:22
9 lines
1695 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:

> All part of the original plan, didn’t you know? NT was designed at the
> beginning to be a portable OS, able to run on a range of architectures
> -- development actually started, not on x86, but on MIPS.

Wasn't it i860?

Regards, Roman
Re: Why VAX Was the Ultimate CISC and Not RISC
#245
Author: Dan Cross
Date: Tue, 27 Oct 2026 18:05
13 lines
1352 bytes
In article <m2mrrzxdmf.fsf@Mac.lan>, Roman Belenov  <no@spam.please> wrote:
>Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>
>> All part of the original plan, didn’t you know? NT was designed at the
>> beginning to be a portable OS, able to run on a range of architectures
>> -- development actually started, not on x86, but on MIPS.
>
>Wasn't it i860?

Yes.  i860 was the first architecture to boot NT.

	- Dan C.
Re: Why VAX Was the Ultimate CISC and Not RISC
#247
Author: Dave Yeo
Date: Tue, 27 Oct 2026 18:14
13 lines
1570 bytes
Roman Belenov wrote:
> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>
>> All part of the original plan, didn’t you know? NT was designed at the
>> beginning to be a portable OS, able to run on a range of architectures
>> -- development actually started, not on x86, but on MIPS.
>
> Wasn't it i860?
>

I remember a Byte article about OS/2 NT v3 first boot (cmd line) on MIPS.
Quite possible they developed on multiple architectures.
Re: Why VAX Was the Ultimate CISC and Not RISC
#246
Author: Michael S
Date: Tue, 27 Oct 2026 18:15
24 lines
2155 bytes
On Tue, 27 Oct 2026 18:05:10 -0000 (UTC)
cross@spitfire.i.gajendra.net (Dan Cross) wrote:

> In article <m2mrrzxdmf.fsf@Mac.lan>, Roman Belenov  <no@spam.please>
> wrote:
> >Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> >  
> >> All part of the original plan, didn’t you know? NT was designed
> >> at the beginning to be a portable OS, able to run on a range of
> >> architectures -- development actually started, not on x86, but on
> >> MIPS.  
> >
> >Wasn't it i860?  
> 
> Yes.  i860 was the first architecture to boot NT.
> 
> 	- Dan C.
> 

Wikipedia claims that the first architecture to boot NT was i860
emulator. They don't say what was the hardware host of the emulator.
The first boot on bare metal most likely happened on MIPS R3000.
Re: Why VAX Was the Ultimate CISC and Not RISC
#389
Author: Anton Ertl
Date: Tue, 27 Oct 2026 18:16
43 lines
2994 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> RISCs are already faster without additional compiler optimization.
>
>If 1983 compilers were still at the -O1 level, RISC may have failed.
>Luckily they were at -O2 at that time, and did.

The -O1 and -O2 of what compiler do you have in mind?

Gcc was released in 1987; it did have a -O option (IIRC no -O2 yet),
and gcc beat HP's C compiler on HP/UX (probably PCC-based, i.e., far
less optimization that gcc -O) by a wide margin; yet HP with their not
so great compiler saw good speedups with their C compiler from their
HPPA RISC architecture (introduced 1986) compared to their 68K-based
and HP FOCUS based systems.  And that's against the 68030 (when I was
at HP in 1988), which already had a better CPI than the CPI=10 of the
VAX 11/780.

The VAX 11/780 CPI is so abysmally high that even if a VAX instruction
would expand into

load
load
operate
store

on a RISC, the RISC would still beat it easily (on early RISCs this
sequence takes 5 cycles, while a typical VAX instruction takes 10
cycles).  You may want to argue cache for the load and the store, but

1) wrt compilers, those memory accesses that compilers can
   register-allocate away are cache hits.

2) wrt VAX 11/780, it will miss the cache for the same memory accesses
   as the RISC, so cache misses won't help the VAX.

Compilers with better register allocation certainly helped, but they
also helped the CISCs (maybe not as much, but still).

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Why VAX Was the Ultimate CISC and Not RISC
#255
Author: Dan Cross
Date: Tue, 27 Oct 2026 18:50
30 lines
1915 bytes
In article <20261027201539.00001cb0@yahoo.com>,
Michael S  <already5chosen@yahoo.com> wrote:
>On Tue, 27 Oct 2026 18:05:10 -0000 (UTC)
>cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>
>> In article <m2mrrzxdmf.fsf@Mac.lan>, Roman Belenov  <no@spam.please>
>> wrote:
>> >Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>> >
>> >> All part of the original plan, didn’t you know? NT was designed
>> >> at the beginning to be a portable OS, able to run on a range of
>> >> architectures -- development actually started, not on x86, but on
>> >> MIPS.
>> >
>> >Wasn't it i860?
>>
>> Yes.  i860 was the first architecture to boot NT.
>>
>> 	- Dan C.
>>
>
>Wikipedia claims that the first architecture to boot NT was i860
>emulator. They don't say what was the hardware host of the emulator.
>The first boot on bare metal most likely happened on MIPS R3000.

Believe what you want, but I have this first-hand from an
engineer who was there.

	- Dan C.
Re: Why VAX Was the Ultimate CISC and Not RISC
#258
Author: Michael S
Date: Tue, 27 Oct 2026 19:16
54 lines
2950 bytes
On Tue, 27 Oct 2026 18:50:58 -0000 (UTC)
cross@spitfire.i.gajendra.net (Dan Cross) wrote:

> In article <20261027201539.00001cb0@yahoo.com>,
> Michael S  <already5chosen@yahoo.com> wrote:
> >On Tue, 27 Oct 2026 18:05:10 -0000 (UTC)
> >cross@spitfire.i.gajendra.net (Dan Cross) wrote:
> >  
> >> In article <m2mrrzxdmf.fsf@Mac.lan>, Roman Belenov
> >> <no@spam.please> wrote:  
> >> >Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> >> >  
> >> >> All part of the original plan, didn’t you know? NT was
> >> >> designed at the beginning to be a portable OS, able to run on a
> >> >> range of architectures -- development actually started, not on
> >> >> x86, but on MIPS.  
> >> >
> >> >Wasn't it i860?  
> >>
> >> Yes.  i860 was the first architecture to boot NT.
> >>
> >> 	- Dan C.
> >>  
> >
> >Wikipedia claims that the first architecture to boot NT was i860
> >emulator. They don't say what was the hardware host of the emulator.
> >The first boot on bare metal most likely happened on MIPS R3000.  
> 
> Believe what you want, but I have this first-hand from an
> engineer who was there.
> 
> 	- Dan C.
> 


Looked further and found this:
https://x.com/davepl1968/status/2103977673425047588

Sounds like Wikipedia story is not complete.
The complete story was:
1. First boot - i860 emulator running on i386 under OS/2
2. First boot on bare metal - i860 XR. Unsatisfactory performance.
3. Boot on MIPS 3 months thereafter.








Re: Why VAX Was the Ultimate CISC and Not RISC
#259
Author: Peter Flass
Date: Tue, 27 Oct 2026 19:44
43 lines
3901 bytes
On 10/27/26 10:04, John Ames wrote:
> On Mon, 26 Oct 2026 22:16:43 -0000 (UTC)
> Lawrence D’Oliveiro <ldo@nz.invalid> wrote:
> 
>> All part of the original plan, didn’t you know? NT was designed at the
>> beginning to be a portable OS, able to run on a range of architectures
>> -- development actually started, not on x86, but on MIPS. It even had
>> a “personality” system, where the Win32 API was just one “personality”
>> that could be exposed to userland; there were plans to support others.
>>
>> In the end, the portability of a proprietary OS proved too expensive
>> to maintain. A few non-x86 ports did ship for a while, but none lasted
>> for long.
> 
> Yeah, multiarchitecture NT was a neat idea, but they whiffed on some
> essentials, the time wasn't really right, and they never gave it quite
> the effort it needed, or the marketing push. The core work of getting
> it up and running on the various RISC platforms was handled well; 2k
> RC1 runs as stably on Alpha as it does on a comparable P2 rig...
> 
> ...but AFAIK Alpha was the only architecture they developed an x86
> translation layer for ('til ARM64, decades later.) So on e.g. PPC or
> MIPS you were limited to the set of applications whose developers felt
> like providing a native build, which wasn't helped by the fact that M$
> sold separate RISC editions of Visual Studio. (I still have the copy of
> VB5 from the brief period where $EMPLOYER toyed with Alpha support.)
> 
> Moreover, they didn't provide anything like the "fat binary" formats
> used by e.g. Apple or NeXT, so even shipping native builds for multiple
> architectures was a non-trivial thing; nor was there a shared virtual-
> machine platform developers could target UCSD-style, even though MS had
> experience with that since the first versions of Visual Basic.
> 
> (Granted, performance on VM platforms was even more lackluster in those
> days, before the advent of JIT techniques etc., but a slower version of
> an application is, in most cases, better than none at all.)
> 
> It's also a good question how much demand there was for cross-platform
> RISC support at the time - how many Windows users *really* needed to be
> on the bleeding edge of performance that bad? - but MS's attitude that
> their job was done when the OS was up and running sure didn't help.

Wasn't there an NT release for the PowerPC?
Re: Why VAX Was the Ultimate CISC and Not RISC
#261
Author: Peter Flass
Date: Tue, 27 Oct 2026 19:46
46 lines
3027 bytes
On 10/27/26 12:16, Michael S wrote:
> On Tue, 27 Oct 2026 18:50:58 -0000 (UTC)
> cross@spitfire.i.gajendra.net (Dan Cross) wrote:
> 
>> In article <20261027201539.00001cb0@yahoo.com>,
>> Michael S  <already5chosen@yahoo.com> wrote:
>>> On Tue, 27 Oct 2026 18:05:10 -0000 (UTC)
>>> cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>>>   
>>>> In article <m2mrrzxdmf.fsf@Mac.lan>, Roman Belenov
>>>> <no@spam.please> wrote:
>>>>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>>>>>   
>>>>>> All part of the original plan, didn’t you know? NT was
>>>>>> designed at the beginning to be a portable OS, able to run on a
>>>>>> range of architectures -- development actually started, not on
>>>>>> x86, but on MIPS.
>>>>>
>>>>> Wasn't it i860?
>>>>
>>>> Yes.  i860 was the first architecture to boot NT.
>>>>
>>>> 	- Dan C.
>>>>   
>>>
>>> Wikipedia claims that the first architecture to boot NT was i860
>>> emulator. They don't say what was the hardware host of the emulator.
>>> The first boot on bare metal most likely happened on MIPS R3000.
>>
>> Believe what you want, but I have this first-hand from an
>> engineer who was there.
>>
>> 	- Dan C.
>>
> 
> 
> Looked further and found this:
> https://x.com/davepl1968/status/2103977673425047588
> 
> Sounds like Wikipedia story is not complete.
> The complete story was:
> 1. First boot - i860 emulator running on i386 under OS/2
> 2. First boot on bare metal - i860 XR. Unsatisfactory performance.
> 3. Boot on MIPS 3 months thereafter.

What would "satisfactory" performance for Windows have looked like?
Re: Why VAX Was the Ultimate CISC and Not RISC
#262
Author: Michael S
Date: Tue, 27 Oct 2026 20:00
64 lines
3704 bytes
On Tue, 27 Oct 2026 12:46:56 -0700
Peter Flass <Peter@Iron-Spring.com> wrote:

> On 10/27/26 12:16, Michael S wrote:
> > On Tue, 27 Oct 2026 18:50:58 -0000 (UTC)
> > cross@spitfire.i.gajendra.net (Dan Cross) wrote:
> >   
> >> In article <20261027201539.00001cb0@yahoo.com>,
> >> Michael S  <already5chosen@yahoo.com> wrote:  
> >>> On Tue, 27 Oct 2026 18:05:10 -0000 (UTC)
> >>> cross@spitfire.i.gajendra.net (Dan Cross) wrote:
> >>>     
> >>>> In article <m2mrrzxdmf.fsf@Mac.lan>, Roman Belenov
> >>>> <no@spam.please> wrote:  
> >>>>> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> >>>>>     
> >>>>>> All part of the original plan, didn’t you know? NT was
> >>>>>> designed at the beginning to be a portable OS, able to run on a
> >>>>>> range of architectures -- development actually started, not on
> >>>>>> x86, but on MIPS.  
> >>>>>
> >>>>> Wasn't it i860?  
> >>>>
> >>>> Yes.  i860 was the first architecture to boot NT.
> >>>>
> >>>> 	- Dan C.
> >>>>     
> >>>
> >>> Wikipedia claims that the first architecture to boot NT was i860
> >>> emulator. They don't say what was the hardware host of the
> >>> emulator. The first boot on bare metal most likely happened on
> >>> MIPS R3000.  
> >>
> >> Believe what you want, but I have this first-hand from an
> >> engineer who was there.
> >>
> >> 	- Dan C.
> >>  
> > 
> > 
> > Looked further and found this:
> > https://x.com/davepl1968/status/2103977673425047588
> > 
> > Sounds like Wikipedia story is not complete.
> > The complete story was:
> > 1. First boot - i860 emulator running on i386 under OS/2
> > 2. First boot on bare metal - i860 XR. Unsatisfactory performance.
> > 3. Boot on MIPS 3 months thereafter.  
> 
> What would "satisfactory" performance for Windows have looked like?

How would I possibly know? My guess is, something like "100 context
switches per second reduce performance (relatively to 0 switches) of
CPU-bound tasks by less than 5%." But that's just my wild guess.
Anyway, since MIPS, x86 and few months later Alpha versions of NT
shipped, I would guess that they all were considered satisfactory.





Re: Why VAX Was the Ultimate CISC and Not RISC
#260
Author: John Ames
Date: Tue, 27 Oct 2026 20:03
8 lines
1720 bytes
On Tue, 27 Oct 2026 12:44:47 -0700
Peter Flass <Peter@Iron-Spring.com> wrote:

> Wasn't there an NT release for the PowerPC?

Yup - only 3.5/3.51, and AFAIK it only ran on IBM hardware, but it did
exist, briefly.
Re: Why VAX Was the Ultimate CISC and Not RISC
#394
Author: Thomas Koenig
Date: Tue, 27 Oct 2026 20:43
32 lines
2726 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> schrieb:
> Thomas Koenig <tkoenig@netcologne.de> posted:
>
>> John Levine <johnl@taugh.com> schrieb:
>> > It appears that Anton Ertl <anton@mips.complang.tuwien.ac.at> said:
>> >>However, graph coloring register allocation is not necessary for a
>> >>RISC to outperform the VAX 11/780, pipelining is enough.  The Berkeley
>> >>RISC people were a hardware group and did not do optimizing compilers.
>> >
>> > They sure didn't.  They invented register windows because PCC's
>> > register allocator saved and restored lots of registers around
>> > every call, and the windows made that faster.  On the 801, they
>> > just saved what they needed to so they didn't even have load or
>> > store multiple.
>> 
>> They had subroutines for register save and restore, which of course
>> helps code density, but is a bit... iffy.
>
> So iffy that essentially nobody does register windows anymore.
> The compiler is at least as good at it as an exception-called
> save/restore machine. {Both V8 and V9}

The 801 didn't do register windows.

They called a routine to save x registers (in their calling
convention) and to restore them on return.  Like enter/exit,
but with a subroutine call.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: Why VAX Was the Ultimate CISC and Not RISC
#399
Author: MitchAlsup
Date: Tue, 27 Oct 2026 21:01
44 lines
2761 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
> >anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
> >> RISCs are already faster without additional compiler optimization.
> >
> >If 1983 compilers were still at the -O1 level, RISC may have failed.
> >Luckily they were at -O2 at that time, and did.
> 
> The -O1 and -O2 of what compiler do you have in mind?

Green Hills circa 1985.
 
> Gcc was released in 1987; it did have a -O option (IIRC no -O2 yet),
> and gcc beat HP's C compiler on HP/UX (probably PCC-based, i.e., far
> less optimization that gcc -O) by a wide margin; yet HP with their not
> so great compiler saw good speedups with their C compiler from their
> HPPA RISC architecture (introduced 1986) compared to their 68K-based
> and HP FOCUS based systems.  And that's against the 68030 (when I was
> at HP in 1988), which already had a better CPI than the CPI=10 of the
> VAX 11/780.
> 
> The VAX 11/780 CPI is so abysmally high that even if a VAX instruction
> would expand into
> 
> load
> load
> operate
> store
> 
> on a RISC, the RISC would still beat it easily (on early RISCs this
> sequence takes 5 cycles, while a typical VAX instruction takes 10
> cycles).  You may want to argue cache for the load and the store, but
> 
> 1) wrt compilers, those memory accesses that compilers can
>    register-allocate away are cache hits.
> 
> 2) wrt VAX 11/780, it will miss the cache for the same memory accesses
>    as the RISC, so cache misses won't help the VAX.
> 
> Compilers with better register allocation certainly helped, but they
> also helped the CISCs (maybe not as much, but still).
> 
> - anton
Re: Why VAX Was the Ultimate CISC and Not RISC
#401
Author: Scott Lurndal
Date: Tue, 27 Oct 2026 21:14
21 lines
1921 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>
>> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>> >anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> >> RISCs are already faster without additional compiler optimization.
>> >
>> >If 1983 compilers were still at the -O1 level, RISC may have failed.
>> >Luckily they were at -O2 at that time, and did.
>> 
>> The -O1 and -O2 of what compiler do you have in mind?
>
>Green Hills circa 1985.

When we started using the 88100 in 1989, we were given
the m88k version of PCC[*] from the Motorola group in the
Chicago area.  It wasn't until the next year that we had
access to the Green Hills (and later Diab Data) 88k compilers.

[*] For which I had to patch the register allocator to support
the crazy expressions generated by cfront.
Re: Why VAX Was the Ultimate CISC and Not RISC
#275
Author: Lawrence D’Oliveiro
Date: Tue, 27 Oct 2026 22:19
12 lines
1786 bytes
On Tue, 27 Oct 2026 20:22:16 +0300, Roman Belenov wrote:

> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>
>> All part of the original plan, didn’t you know? NT was designed at
>> the beginning to be a portable OS, able to run on a range of
>> architectures -- development actually started, not on x86, but on
>> MIPS.
>
> Wasn't it i860?

Probably.
Re: Why VAX Was the Ultimate CISC and Not RISC
#274
Author: Lawrence D’Oliveiro
Date: Tue, 27 Oct 2026 22:32
19 lines
2000 bytes
On Tue, 27 Oct 2026 08:18 +0000 (GMT Standard Time), John Dallman wrote:

> In article <11bogu0$10307$1@dont-email.me>, chris.m.thomasson.1@gmail.com
> (Chris M. Thomasson) wrote:
>
>> It was interesting to me that Windows can run on an Alpha:
>>
>> https://betawiki.net/wiki/Draft:Installing_Windows_NT_on_DEC_Alpha
>
> It worked fine. My employers supported it for several years. It had
> customers because it was the fastest Windows platform, for a while.

Never took advantage of 64-bit addressing, though; ran the Alpha in
32-bit-only “TASO” mode.

Of the four OSes I can think of that were ported to Alpha, the one
from Microsoft was 32-bit-only, DEC’s homegrown one (OpenVMS) was a
32/64-bit hybrid, and the only fully 64-bit ones were DEC UNIX and
Linux.
Re: Why VAX Was the Ultimate CISC and Not RISC
#408
Author: John Dallman
Date: Wed, 28 Oct 2026 08:08
12 lines
1222 bytes
In article <11br8pl$1uehc$5@dont-email.me>, ldo@nz.invalid (Lawrence
D_Oliveiro) wrote:

> Of the four OSes I can think of that were ported to Alpha, the one
> from Microsoft was 32-bit-only, DEC's homegrown one (OpenVMS) was a
> 32/64-bit hybrid, and the only fully 64-bit ones were DEC UNIX and
> Linux.

VMS was initially 32-bit only. The 32/64 hybrid came in at VMS v7.0. The
Itanium and x64_64 versions are still 32/64 hybrids. 

John 
Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#443
Author: Anton Ertl
Date: Thu, 29 Oct 2026 16:11
81 lines
4693 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>Thomas Koenig <tkoenig@netcologne.de> posted:
>
>> John Levine <johnl@taugh.com> schrieb:
[IBM 801]
>> They had subroutines for register save and restore, which of course
>> helps code density, but is a bit... iffy.
>
>So iffy that essentially nobody does register windows anymore.

The IBM 801 did not do register windows, either.

>The compiler is at least as good at it as an exception-called
>save/restore machine. {Both V8 and V9}

If we stay with in-order machines, the SPARC register windows have two
disadvantages that are not necessary:

1) Every window has a fixed 16 registers, resulting in less utilization
   of a given number of registers (and more need for saving/restoring
   to memory) and possibly extra spilling needed for functions with
   particularly high register pressure, compared to a more flexible
   scheme.

2) Using exceptions for the saving and restoring gives away some of
   the potential speed advantage of register windows.  That does not
   affect user space, so getting rid of that should have been not that
   hard, but AFAIK it did not happen for SPARC, so maybe it was hard
   (cf. the IA-64 problems).

The AMD 29K and IA-64 deal with 1) by being more flexible.  IA-64 was
intended to deal with 2) with its hardware stack engine, but according
to John Dallman they botched it, and fell back to exceptions as a
recourse.  Apparently it is not an easy feature to implement, which is
somewhat surprising given that OoO seems conceptually more complex,
and the microarchitects have managed to get it right pretty much every
time.

There is a third issue: Do you pass arguments in the register windows,
or in what SPARC calls global registers?  AFAIK SPARC chose to pass
them in windows, but that means that a call sequence like

int foo(a,b)
{
  ...
  bar(a,b);
  ...
}

has to copy a and b between in and out, while using globals for
arguments would avoid that (but would require saving the arguments in
some way if they are used after the call, the same as without register
windows).

Once we consider OoO, the potential advantages of register windows
become even smaller:

1) OoO can make the stores and loads around calls and returns cheaper:
   If the front end runs far ahead of the execution engine (the usual
   case), the stores can start as soon as the values are ready (and if
   they are ready late, the store waits without delaying anything
   else), and independent loads can start early.  So ideally they
   don't get into the way of the useful instructions.

2) On recent designs, zero-cycle store-to-load forwarding means that
   even storing and loading around short function calls may have little
   or no latency penalty.

And register windows tend to cost more in OoO implementations: the
register address table (for implementations with a separate renamer)
becomes larger.

My memory says that the OoO implementations of HAL/Fujitsu used the
minimum number of register windows allowed, probably due to a
combination of the cost and the smaller benefits.  However, the number
of exceptions would increase.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#444
Author: MitchAlsup
Date: Thu, 29 Oct 2026 17:54
74 lines
3916 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
> >Thomas Koenig <tkoenig@netcologne.de> posted:
> >
> >> John Levine <johnl@taugh.com> schrieb:
> [IBM 801]
> >> They had subroutines for register save and restore, which of course
> >> helps code density, but is a bit... iffy.
> >
> >So iffy that essentially nobody does register windows anymore.
-----------snip----------
> There is a third issue: Do you pass arguments in the register windows,
> or in what SPARC calls global registers?  AFAIK SPARC chose to pass
> them in windows, but that means that a call sequence like
> 
> int foo(a,b)
> {
>   ...
>   bar(a,b);
>   ...
> }

It gets worse when::

  type foo( a, b ){
      ...
      return bar( a, b );
      ...
  }

Now you have to copy forward foo->bar and copy bar's return back
as foo's return. Whereas a flat register file has neither MOV.
 
> has to copy a and b between in and out, while using globals for
> arguments would avoid that (but would require saving the arguments in
> some way if they are used after the call, the same as without register
> windows).
> 
> Once we consider OoO, the potential advantages of register windows
> become even smaller:
> 
> 1) OoO can make the stores and loads around calls and returns cheaper:
>    If the front end runs far ahead of the execution engine (the usual
>    case), the stores can start as soon as the values are ready (and if
>    they are ready late, the store waits without delaying anything
>    else), and independent loads can start early.  So ideally they
>    don't get into the way of the useful instructions.

My 66000 takes advantage of this by LDing the Ret Addr first, and then
reLDing the rest of the file, so by the time that is done, FETCH already
has instructions for DECODE>
 
> 2) On recent designs, zero-cycle store-to-load forwarding means that
>    even storing and loading around short function calls may have little
>    or no latency penalty.

When prologue and epilogue are 'structured' there are times when one
can elide the stores entirely as the memory location already has the 
bit pattern the <yet to be performed> ST will write. These happen
when an EXIT runs into a CALL->ENTER while EXIT is still moving data.
 
> And register windows tend to cost more in OoO implementations: the
> register address table (for implementations with a separate renamer)
> becomes larger.

Slower RF, makes the pipeline at least 1/2 cycle longer.
 
> My memory says that the OoO implementations of HAL/Fujitsu used the
> minimum number of register windows allowed, probably due to a
> combination of the cost and the smaller benefits.  However, the number
> of exceptions would increase.
> 
> - anton
Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#447
Author: Anton Ertl
Date: Thu, 29 Oct 2026 18:09
57 lines
3571 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> There is a third issue: Do you pass arguments in the register windows,
>> or in what SPARC calls global registers?  AFAIK SPARC chose to pass
>> them in windows, but that means that a call sequence like
>> 
>> int foo(a,b)
>> {
>>   ...
>>   bar(a,b);
>>   ...
>> }
>
>It gets worse when::
>
>  type foo( a, b ){
>      ...
>      return bar( a, b );
>      ...
>  }
>
>Now you have to copy forward foo->bar and copy bar's return back
>as foo's return.

No, it's a tail-call.  You just jump to bar without saving or
restoring a register window.

>My 66000 takes advantage of this by LDing the Ret Addr first, and then
>reLDing the rest of the file, so by the time that is done, FETCH already
>has instructions for DECODE>

I get the impression that My 66000 lives in 1994.  In a modern
(post-1995, with a few exceptions, most of which have died out in the
meantime) processor the front end predicts the return from the
processor-internal return stack and often starts fetching from there
before the load-store unit sees the load of the return address.  The
return address is then used to validate the branch prediction and
retire the return instruction.

>> And register windows tend to cost more in OoO implementations: the
>> register address table (for implementations with a separate renamer)
>> becomes larger.
>
>Slower RF, makes the pipeline at least 1/2 cycle longer.

Given register file sizes like 416 physical GPRs on the Qualcomm
Oryon, making the pipeline longer seems to be something CPU designers
can handle these days; with 416 physical GPRs, taking 72 (or however
many architectural registers Fujitsu used) rather than 32 for
architected registers is probably not a big thing, but sure, now there
are 40 fewer registers that can be used for renaming.  Still the
growth of the RAT is probably a bigger issue.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#448
Author: MitchAlsup
Date: Thu, 29 Oct 2026 20:31
87 lines
5691 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
> >anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
--------------------
> >My 66000 takes advantage of this by LDing the Ret Addr first, and then
> >reLDing the rest of the file, so by the time that is done, FETCH already
> >has instructions for DECODE>
> 
> I get the impression that My 66000 lives in 1994.  In a modern
> (post-1995, with a few exceptions, most of which have died out in the
> meantime) processor the front end predicts the return from the
> processor-internal return stack and often starts fetching from there
> before the load-store unit sees the load of the return address.  The
> return address is then used to validate the branch prediction and
> retire the return instruction.

You can't predict until you are within <about> 2-fetch cycles of the
instruction you are going to make a prediction about {RET here}.
When RET is 16-odd instructions (all LDDs) from the current INSERT
point, you aren't at the point you can make a prediction (by couple
of cycles).

The thing is that there may be 16 register loads between the point where
the compiler knows a return is going to happen and the RET instruction
itself (in whatever guise). Given that each takes an instruction, then
we get to the point where moving those 16 register loads through DECODE
prevents FETCH/PREDICT from seeing the RET for several cycles. But the
EXIT instruction itself makes DECODE know that a bunch of register LDs
will happen and a RET will also happen, so it arranged that RA is fetched
first and then used to fetch instructions at RA and feed DECODE while all
the LDs are transpiring.

Yes, it is easy to predict RET and to fetch instructions there. So, let's
say we predict the RET and we also "predict" <in some manner> the sub-
sequent call. So, while we are still LDing registers, we now need to ST
a bunch of registers {new epilogue} onto the same memory currently being
LDed.

The predictive mechanics to determine that the new epilogue is storing
bit patterns that are already in those memory locations is "non trivial"
for RISC-V but trivial for EXIT-CALL-ENTER. {For most leaf functions;
there is only RET with no preserved register restoration and no EXIT}.

There are cases where one has an EXIT-CALL-ENTER where both {EXIT LDDs
and ENTER STs} are elided, since the return from this CALL will perform
those restores--but only to the overlapping set of registers.

In no way am I preventing predictors from predicting {although I am 
reducing the number of <hard> cases they have to sift through.} I am
realistic about when a prediction may transpire. Generally current IP
and some HASHing bits are used to access predictor(s) in cycle k,
and are available in cycle k=1 to make a FETCH prediction for cycle 
k+2.

So, the question, here, boils down to: "How many cycles does it take
DECODE to 'process' 16-LDDs in a row". Even a 10-wide machine may only
have 4 LD/MEM FUs, so it would take 4-odd cycles to push LDDs through
DECODE, and at cycle 2 one could be able to predict RET--whereas My
66000 can predict {with 100% confidence} 2-cycles earlier.

It is this "push through DECODE" notion I have been struggling with
for a "while". Once I saw 42-instructions in a row out of the compiler
all targeting the FMAC FU--I knew I needed a way to move instructions
through DECODE faster than the targeted FU can process them. Prologues
and epilogues are just more of this same problem.

I suspect others have found similar "push through DECODE" issues, too.
 
> >> And register windows tend to cost more in OoO implementations: the
> >> register address table (for implementations with a separate renamer)
> >> becomes larger.
> >
> >Slower RF, makes the pipeline at least 1/2 cycle longer.
> 
> Given register file sizes like 416 physical GPRs on the Qualcomm
> Oryon, making the pipeline longer seems to be something CPU designers
> can handle these days; with 416 physical GPRs, taking 72 (or however
> many architectural registers Fujitsu used) rather than 32 for
> architected registers is probably not a big thing, but sure, now there
> are 40 fewer registers that can be used for renaming.  Still the
> growth of the RAT is probably a bigger issue.

The RAT _was_ a big problem for K9 {with 22 ports per cycle}, its only
saving grace was that it was only 8-bits wide {instead of 64+}.
 
> - anton
Re: Why VAX Was the Ultimate CISC and Not RISC
#453
Author: John Savard
Date: Fri, 30 Oct 2026 00:10
19 lines
2098 bytes
On Tue, 27 Oct 2026 16:58:12 GMT, MitchAlsup
<user5857@newsgrouper.org.invalid> wrote:

>So iffy that essentially nobody does register windows anymore.

Even I think that register windows are too crazy to consider!

I have banks of 128 registers, but the choice is to use them all or
ignore them.

Of course, there's one register-window-like scheme that I could
*remotely consider* using, even though it is also dangerously flawed.
Give the computer an internal high-speed memory that's only 64K in
size... and copy the Texas Instruments 9900 scheme. That's a little
different from a "window", although in a way it's essentially the same
thing. At least here save and restore don't mean copying the window
contents into memory, but instead saving a copy of the pointer.

John Savard
Re: Why VAX Was the Ultimate CISC and Not RISC
#454
Author: MitchAlsup
Date: Fri, 30 Oct 2026 00:33
26 lines
2218 bytes
quadibloc@invalid.com (John Savard) posted:

> On Tue, 27 Oct 2026 16:58:12 GMT, MitchAlsup
> <user5857@newsgrouper.org.invalid> wrote:
> 
> >So iffy that essentially nobody does register windows anymore.
> 
> Even I think that register windows are too crazy to consider!
> 
> I have banks of 128 registers, but the choice is to use them all or
> ignore them.
> 
> Of course, there's one register-window-like scheme that I could
> *remotely consider* using, even though it is also dangerously flawed.
> Give the computer an internal high-speed memory that's only 64K in
> size... and copy the Texas Instruments 9900 scheme. That's a little
> different from a "window", although in a way it's essentially the same
> thing. At least here save and restore don't mean copying the window
> contents into memory, but instead saving a copy of the pointer.

My 66000's memory-based Thread-state is similar to 9900--except HW
treats them like a write-back-cache. In the 9900 sense, one can
change a pointer and one has a new register file--but one also has
a new memory map, and everything else in a Thread-State.
 
> John Savard
Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#459
Author: Anton Ertl
Date: Fri, 30 Oct 2026 07:06
142 lines
8349 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> In a modern
>> (post-1995, with a few exceptions, most of which have died out in the
>> meantime) processor the front end predicts the return from the
>> processor-internal return stack and often starts fetching from there
>> before the load-store unit sees the load of the return address.  The
>> return address is then used to validate the branch prediction and
>> retire the return instruction.
>
>You can't predict until you are within <about> 2-fetch cycles of the
>instruction you are going to make a prediction about {RET here}.

Predictors can make predictions about anything.  But given that it is
only useful to make predictions that are actually used, they will only
predict the next few I-cache lines to be fetched, so yes, predicting a
few fetch lines ahead could be common.

How many?  Depends on the latency of the I-cache.  Given that it is
typically similar in size to the D-cache, it's latency will also be
similar, i.e., around 4 cycles.

How many cache lines are fetched per cycle?  With a 10-wide front end,
you probably do not want to underutilize the rest of the front end if
there is a taken branch or there is a branch to a target less than 10
instructions from the end of the cache line, so better fetch two cache
lines per cycle.

So there might be about 8 cache lines fetched between the prediction
of the line that includes the return instructions and the actual fetch
of the return instruction.  The predictor has to predict the target of
the return as the next prediction.

Now if you want to wait for the result of the return-address load, you
have to contend not just with the latency of the I-cache fetch of this
load, but also the decoding, renaming, scheduling, and execution
(D-cache latency) of this load, typically 10-20 cycles total.  So you
would have to fetch this load 10-20 cycles (and thus 10-20 cycles
worth of instructions, i.e. 100-200 instructions on a 10-wide machine)
to have its result ready for using it to fetch the cache line after
the return instruction (but of course that does not consider that in
such a predictorless design, the return instruction also takes its
time to decode etc.).

Anyway, thanks to branch prediction and speculative execution, that's
not necessary.

>When RET is 16-odd instructions (all LDDs) from the current INSERT
>point, you aren't at the point you can make a prediction (by couple
>of cycles).
>
>The thing is that there may be 16 register loads between the point where
>the compiler knows a return is going to happen and the RET instruction
>itself (in whatever guise). Given that each takes an instruction, then
>we get to the point where moving those 16 register loads through DECODE
>prevents FETCH/PREDICT from seeing the RET for several cycles.

Concerning the 16 loads, I don't think I have ever seen a compiler
generate that many in front of a return.  It would require that the
calling convention has at least 16 callee-saved registers, and that
they are all being used.

But anyway, even assuming there is this bunch of loads, and the
pipeline from the renamer to the scheduler(s) of the load/store units
is narrow and there is no buffering capacity in between, there is no
reason why the predictor would not predict the return.  It does not
need to decode the return instruction to predict it, it just needs to
predict that there will be a return, and then use the hardware return
stack to make the prediction.

Of course, with a design that suffers from congestion between the
renamer and the schedulers, the congestion will eventually clog the
front end back to the instruction fetcher, and then even having a
preduction early will not help.  If this is a common occurence, the
microarchitecture is obviously badly balanced for the workloads it
uses.

BTW, what is the INSERT point? 

>But the
>EXIT instruction itself makes DECODE know that a bunch of register LDs
>will happen and a RET will also happen, so it arranged that RA is fetched
>first and then used to fetch instructions at RA and feed DECODE while all
>the LDs are transpiring.

Ok, so you are assuming that the congestion has not clogged the
decoder.  In that case, a design with a predictor will happily fetch
the target of the return and feed it into the decoders.

>Yes, it is easy to predict RET and to fetch instructions there. So, let's
>say we predict the RET and we also "predict" <in some manner> the sub-
>sequent call. So, while we are still LDing registers, we now need to ST
>a bunch of registers {new epilogue} onto the same memory currently being
>LDed.

I assume you mean "{new prologue}".

And you assume that the next call also makes use of many callee-saved
registers.

>The predictive mechanics to determine that the new epilogue is storing
>bit patterns that are already in those memory locations is "non trivial"
>for RISC-V but trivial for EXIT-CALL-ENTER.

Are the same registers saved to the same places?  If that is a common
occurence (I don't think so), recognizing and optimizing it in
hardware (probably in the renamer) looks doable.

>{For most leaf functions;
>there is only RET with no preserved register restoration and no EXIT}.

If you need so many registers that you also use callee-saved
registers, the callee also saves them when the callee is a leaf
function.  Of course, for values that do not live across a call
(i.e. all values in a leaf function), caller-saved registers are the
first pick.

>So, the question, here, boils down to: "How many cycles does it take
>DECODE to 'process' 16-LDDs in a row". Even a 10-wide machine may only
>have 4 LD/MEM FUs, so it would take 4-odd cycles to push LDDs through
>DECODE

I would not know why a 10-wide decoder would not decode 10 loads per
cycle.  Likewise for the renamer.  Then the schedulers may be more
limited, but if so, and having loads and stores in large bunches is
common, a competent designer will insert some buffering capacity to
avoid congesting the front end.

>and at cycle 2 one could be able to predict RET--whereas My
>66000 can predict {with 100% confidence} 2-cycles earlier.

You mean, it can resolve the prediction two cycles earlier.  Given
that return stack prediction is very accurate, the benefit might be
that one can use a smaller ROB, if the prediction of return was the
only reason for having a large ROB.  But I think that other reasons
for having a large ROB (such as conditional branches, or cache misses)
stull persist and are actually more important.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#465
Author: MitchAlsup
Date: Fri, 30 Oct 2026 18:34
180 lines
9916 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
> >anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
> >> In a modern
> >> (post-1995, with a few exceptions, most of which have died out in the
> >> meantime) processor the front end predicts the return from the
> >> processor-internal return stack and often starts fetching from there
> >> before the load-store unit sees the load of the return address.  The
> >> return address is then used to validate the branch prediction and
> >> retire the return instruction.
> >
> >You can't predict until you are within <about> 2-fetch cycles of the
> >instruction you are going to make a prediction about {RET here}.
> 
> Predictors can make predictions about anything.  But given that it is
> only useful to make predictions that are actually used, they will only
> predict the next few I-cache lines to be fetched, so yes, predicting a
> few fetch lines ahead could be common.
> 
> How many?  Depends on the latency of the I-cache.  Given that it is
> typically similar in size to the D-cache, it's latency will also be
> similar, i.e., around 4 cycles.
> 
> How many cache lines are fetched per cycle?  With a 10-wide front end,
> you probably do not want to underutilize the rest of the front end if
> there is a taken branch or there is a branch to a target less than 10
> instructions from the end of the cache line, so better fetch two cache
> lines per cycle.

A cache line contains 16 instructions, so one would assume a partial
line is held over (to the next decode cycle) and one makes 1 fetch
in the sequential direction and 1 fetch to another predicted address. 
2-fetches per cycle giving almost 3 lines of instructions for decode.
 
> So there might be about 8 cache lines fetched between the prediction
> of the line that includes the return instructions and the actual fetch
> of the return instruction.  The predictor has to predict the target of
> the return as the next prediction.
> 
> Now if you want to wait for the result of the return-address load, you
> have to contend not just with the latency of the I-cache fetch of this
> load, but also the decoding, renaming, scheduling, and execution
> (D-cache latency) of this load, typically 10-20 cycles total.

That is the latency of verification of the prediction.

>                                                                So you
> would have to fetch this load 10-20 cycles (and thus 10-20 cycles
> worth of instructions, i.e. 100-200 instructions on a 10-wide machine)
> to have its result ready for using it to fetch the cache line after
> the return instruction (but of course that does not consider that in
> such a predictorless design, the return instruction also takes its
> time to decode etc.).
> 
> Anyway, thanks to branch prediction and speculative execution, that's
> not necessary.
> 
> >When RET is 16-odd instructions (all LDDs) from the current INSERT
> >point, you aren't at the point you can make a prediction (by couple
> >of cycles).
> >
> >The thing is that there may be 16 register loads between the point where
> >the compiler knows a return is going to happen and the RET instruction
> >itself (in whatever guise). Given that each takes an instruction, then
> >we get to the point where moving those 16 register loads through DECODE
> >prevents FETCH/PREDICT from seeing the RET for several cycles.
> 
> Concerning the 16 loads, I don't think I have ever seen a compiler
> generate that many in front of a return.  It would require that the
> calling convention has at least 16 callee-saved registers, and that
> they are all being used.

I have numerous examples of RISC-V (LLVM -O3) having 13 STs in prologue
and 13 LDs in epilogue. The distribution (excepting for leaf functions
(0 saved) and director functions (1 saved) is basically a Bell Curve
from 2->13.)
 
> But anyway, even assuming there is this bunch of loads, and the
> pipeline from the renamer to the scheduler(s) of the load/store units
> is narrow and there is no buffering capacity in between, there is no
> reason why the predictor would not predict the return.  It does not
> need to decode the return instruction to predict it, it just needs to
> predict that there will be a return, and then use the hardware return
> stack to make the prediction.

Maybe predictors have gotten that good. We always verified that there
was a flow-control instruction as a qualification to the predictor.
 
> Of course, with a design that suffers from congestion between the
> renamer and the schedulers, the congestion will eventually clog the
> front end back to the instruction fetcher, and then even having a
> preduction early will not help.  If this is a common occurence, the
> microarchitecture is obviously badly balanced for the workloads it
> uses.

Key point: DECODE needs a mechanism that "smoothly" deals with FU
overcommitment.
 
> BTW, what is the INSERT point? 

It is where the instruction is far enough into the pipe that natural
FU scheduling runs it to completion {This is mostly when the Inst is
written into Reservation Station.}
 
> >But the
> >EXIT instruction itself makes DECODE know that a bunch of register LDs
> >will happen and a RET will also happen, so it arranged that RA is fetched
> >first and then used to fetch instructions at RA and feed DECODE while all
> >the LDs are transpiring.
> 
> Ok, so you are assuming that the congestion has not clogged the
> decoder.  In that case, a design with a predictor will happily fetch
> the target of the return and feed it into the decoders.

ENTER and EXIT invent the STs and LDs needed in a way easy for DECODE to
digest. EXIT in particular {with inst<3>==0} will return; and even if
there are a lot of LDs to be performed <via EXIT>, RA can be sent to
FETCH far earlier, ...
 
> >Yes, it is easy to predict RET and to fetch instructions there. So, let's
> >say we predict the RET and we also "predict" <in some manner> the sub-
> >sequent call. So, while we are still LDing registers, we now need to ST
> >a bunch of registers {new epilogue} onto the same memory currently being
> >LDed.
> 
> I assume you mean "{new prologue}". -- YES YES
> 
> And you assume that the next call also makes use of many callee-saved
> registers.

Sure, setting up the scenario.
 
> >The predictive mechanics to determine that the new epilogue is storing
> >bit patterns that are already in those memory locations is "non trivial"
> >for RISC-V but trivial for EXIT-CALL-ENTER.
> 
> Are the same registers saved to the same places?  If that is a common
> occurence (I don't think so), recognizing and optimizing it in
> hardware (probably in the renamer) looks doable.

My 66000 ABI (and SBI) both operate that way. ENTER saves registers
where higher register numbers are stored at higher memory locations.
 
> >{For most leaf functions;
> >there is only RET with no preserved register restoration and no EXIT}.
> 
> If you need so many registers that you also use callee-saved
> registers, the callee also saves them when the callee is a leaf
> function.

No, of course not. Leaf functions (93%) save no registers at all as they
perform their duties in the freely-available temporary registers R0..15

>           Of course, for values that do not live across a call
> (i.e. all values in a leaf function), caller-saved registers are the
> first pick.
> 
> >So, the question, here, boils down to: "How many cycles does it take
> >DECODE to 'process' 16-LDDs in a row". Even a 10-wide machine may only
> >have 4 LD/MEM FUs, so it would take 4-odd cycles to push LDDs through
> >DECODE
> 
> I would not know why a 10-wide decoder would not decode 10 loads per
> cycle.  Likewise for the renamer.  Then the schedulers may be more
> limited, but if so, and having loads and stores in large bunches is
> common, a competent designer will insert some buffering capacity to
> avoid congesting the front end.
> 
> >and at cycle 2 one could be able to predict RET--whereas My
> >66000 can predict {with 100% confidence} 2-cycles earlier.
> 
> You mean, it can resolve the prediction two cycles earlier.  Given
> that return stack prediction is very accurate, the benefit might be
> that one can use a smaller ROB, if the prediction of return was the
> only reason for having a large ROB.  But I think that other reasons
> for having a large ROB (such as conditional branches, or cache misses)
> stull persist and are actually more important.
> 
> - anton
Re: Register windows (was: Why VAX Was the Ultimate CISC and Not RISC)
#479
Author: Anton Ertl
Date: Sat, 31 Oct 2026 08:13
106 lines
6576 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>
>> MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>> >anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> >> In a modern
>> >> (post-1995, with a few exceptions, most of which have died out in the
>> >> meantime) processor the front end predicts the return from the
>> >> processor-internal return stack and often starts fetching from there
>> >> before the load-store unit sees the load of the return address.  The
>> >> return address is then used to validate the branch prediction and
>> >> retire the return instruction.
>> >
>> >You can't predict until you are within <about> 2-fetch cycles of the
>> >instruction you are going to make a prediction about {RET here}.
>> 
>> Predictors can make predictions about anything.  But given that it is
>> only useful to make predictions that are actually used, they will only
>> predict the next few I-cache lines to be fetched, so yes, predicting a
>> few fetch lines ahead could be common.
>> 
>> How many?  Depends on the latency of the I-cache.  Given that it is
>> typically similar in size to the D-cache, it's latency will also be
>> similar, i.e., around 4 cycles.
>> 
>> How many cache lines are fetched per cycle?  With a 10-wide front end,
>> you probably do not want to underutilize the rest of the front end if
>> there is a taken branch or there is a branch to a target less than 10
>> instructions from the end of the cache line, so better fetch two cache
>> lines per cycle.
>
>A cache line contains 16 instructions, so one would assume a partial
>line is held over (to the next decode cycle) and one makes 1 fetch
>in the sequential direction and 1 fetch to another predicted address.

With this design the rest of the front end would not be fully utilized
if there are is more than on taken branch per n instructions (where n
is the decode width).  With 10-wide designs, that's restrictive.  I
have programs here that have more than 1 taken branch on 10
instructions:

perf stat -e instructions:u -e br_inst_retired.near_taken:u ./magichex 3 2
...
143280237      instructions:u
 16156505      br_inst_retired.near_taken:u

That's 8.9 instructions per taken branch.

perf stat -e instructions:u -e br_inst_retired.near_taken:u gforth-fast --no-dynamic onebench.fs
4249141031      instructions:u
 661631554      br_inst_retired.near_taken:u

That's 6.4 instructions per taken branch.

Although, admittedly, in the last case if we take the "--no-dynamic"
away, this reduces the number of taken branches more than the number
of instructions, resulting in more than 10 instructions per taken
branch:

2026987196      instructions:u
 175323098      br_inst_retired.near_taken:u

But it uses dynamic native-code generation, which you have poo-pooed
as "self-modifying code", so presumably My 66000 will have to fall
back to --no-dynamic and will have to take at least 661M cycles for
this benchmark if it can only deal with one taken branch per cycle,
whereas even a lowly Darkmont (Core Ultra 225 E-Core) can run this
benchmark on 440M cycles.

>I have numerous examples of RISC-V (LLVM -O3) having 13 STs in prologue
>and 13 LDs in epilogue. The distribution (excepting for leaf functions
>(0 saved) and director functions (1 saved) is basically a Bell Curve
>from 2->13.)

It's interesting that you have numerous examples of needing 13
callee-saved registers for non-leaf functions, but apparently the 16
caller-saved registers are enough for the leaf functions; i.e., there
is not a single leaf function that needs more than 16 registers (the
number of caller-saved registers in the RISC-V ABI).

>> It does not
>> need to decode the return instruction to predict it, it just needs to
>> predict that there will be a return, and then use the hardware return
>> stack to make the prediction.
>
>Maybe predictors have gotten that good.

They have to.  You cannot afford to wait to decode a branch before
starting to predict it when you need to be able to deal with 1-2 taken
branches per cycle.  If you wait for the fetch and the decode before
starting to predict, you will see at most 1 taken branch every n
cycles, where n=fetch_latency+decode_latency+predictor_latency, i.e.,
>5 cycles on a modern CPU, possibly more like 10 cycles.  With one
taken branch every 10 instructions or so, this would limit your IPC to
1-2, and much of the 10-wide design would starve.

>No, of course not. Leaf functions (93%) save no registers at all as they
>perform their duties in the freely-available temporary registers R0..15

If a leaf function needs more GPRs, it use callee-saved registers, and
will save them in the prologue and load them in the epilogue.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Page 1 of 2 • 61 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads