🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #715

Re: CISC are not "unreduced"

#715
From: Stefan Monnier
Date: Fri, 13 Nov 2026 22:54
41 lines
3766 bytes
Anton Ertl [2026-11-13 18:26:42] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>That's beside the point.  With a load/store architecture you don't need
>>to choose between using the ADD-with-addressing mode or using explicit
>>loads and stores.  Makes life simpler for the compiler.
> No.  With an architecture like the VAX, RISC is actually harder:
> VAX: If operand src1 is in memory, accessed with d(SP), use the ADD
> instruction with d(SP) as second operand.  Likewise for src2 and dst.
>
> RISC: If operand src2 is in memory, allocate a register for it (but
> why is it in memory? Probably because there are no registers
> available, so first spill some other value);

AFAIK at the point you make this choice you haven't performed register
allocation yet, so if it's in memory it's for other reasons than
register pressure and you don't need to allocate a register, you
allocate a "variable" instead (which will likely be mapped to
a register later on).

> It's all doable, but simpler?  No.

In my experience it is, because each indirection from the high-level
language maps to basically a single simple LD/ST.  In contrast to use
VAX's ADD-with-memory you have to combine such an indirection with the
addition operation, so you need to do the burg kind of dance.

>>And this is useful for CISC but much less so for RISC, so you can use
>>a simpler compiler for RISC instruction sets.
>
> It's also useful for RISCs, because it has instructions that combine a
> constant with an operation, and instructions that add a constant and a
> register, and then use the resulting address in a load (or store); not
> to mention addressing modes of, e.g., the 88K architecture.  And
> auto-increment/decrement addressing modes, such as available on ARM
> A32 and A64, and HPPA, do not fit the tree parsing paradigm.

Yup.  They didn't push the "make it simple for compilers" as far as they
could have.  There were other competing desires.


=== Stefan
Technical Details
Message-ID: <jwvfqx4pd16.fsf-monnier+comp.arch@gnu.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <2026Nov9.071302@mips.complang.tuwien.ac.at> <11cru1e$11qpi$1@dont-email.me> <2026Nov9.091404@mips.complang.tuwien.ac.at> <11cti0c$1lilf$4@dont-email.me> <11cuoa4$21279$1@dont-email.me> <jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org> <1794357499-5857@newsgrouper.org> <jwvik23o10u.fsf-monnier+comp.arch@gnu.org> <2026Nov12.072121@mips.complang.tuwien.ac.at> <jwvy0axmx8f.fsf-monnier+comp.arch@gnu.org> <2026Nov13.192642@mips.complang.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: comp.arch
Subject: Re: CISC are not "unreduced"
Date: Fri, 13 Nov 2026 17:54:07 -0500
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <jwvfqx4pd16.fsf-monnier+comp.arch@gnu.org>
References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me>
	<2026Nov9.071302@mips.complang.tuwien.ac.at>
	<11cru1e$11qpi$1@dont-email.me>
	<2026Nov9.091404@mips.complang.tuwien.ac.at>
	<11cti0c$1lilf$4@dont-email.me> <11cuoa4$21279$1@dont-email.me>
	<jwvcxscsjsa.fsf-monnier+comp.arch@gnu.org>
	<1794357499-5857@newsgrouper.org>
	<jwvik23o10u.fsf-monnier+comp.arch@gnu.org>
	<2026Nov12.072121@mips.complang.tuwien.ac.at>
	<jwvy0axmx8f.fsf-monnier+comp.arch@gnu.org>
	<2026Nov13.192642@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sat, 14 Nov 2026 10:13:34 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1954688"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/zIHUDelVnJYJAWuiLKnGca4G79cspoQM="; posting-host="a05ebbf26e33017264d1778f0d6bbbdc"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:HmhoxUbXjFI6t9VMAl9c3dx7Ftg=
	sha1:Y5EMtMktXG6+fY2ACDCk375Soq4= sha256:Fu49njxbZc7L7a5uTX8Yo80O9TMCBAAfUpROj+1gz0c=
	sha1:sILydKlMxRLro99pS8I3vn7gViY= sha256:IuZxpQ4Rg8QJNnDu+SpedP+ahnsSjo28Z4jiZt/xd/M=
In-Reply-To: <2026Nov13.192642@mips.complang.tuwien.ac.at> (message from anton@mips.complang.tuwien.ac.at (Anton Ertl) on Fri, 13 Nov 2026 18:26:42 GMT)