🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #683

Re: CISC are not "unreduced"

#683
From: Thomas Koenig
Date: Fri, 13 Nov 2026 11:02
60 lines
4252 bytes
Stefan Monnier <monnier@iro.umontreal.ca> schrieb:
> Anton Ertl [2026-11-12 06:21:21] wrote:
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>>Yeah, if we take CISC as motivated by the desire to provide an assembly
>>>language that is comfortable for humans, we can also take RISC as
>>>motivated by the desire to provide an assembly language that's
>>>convenient for compilers (which would rather not need to worry about
>>>tradeoffs between using LD+ADD+ST vs using some fancy addressing mode
>>>on ADD).
>> The fancy addressing mode is the same whether you use it with a LD, a
>> ST, or an ADD.
>
> 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.

I agree.  But a large amount of optimization has gone into architectures
with have memory operands (especially x86), so this is in large part
a solved problem.

>
>> Compilers actually have no problem using that addressing mode,
>> especially in an architecture like VAX: When the variable resides in a
>> register, use a register, when it's in memory, use the appropriate
>> addressing mode.
>
> What if explicit loads and stores are faster/slower?

That should be in the cost model of the compiler.

> And how is the answer affected by subsequent operations accessing the
> same memory location?

In the general case, that should be done well by the compiler.
If it sees a sequence of events where there is a load and an
operation, or a load, an operation and a store, with nothing
further going on with that value, then that is a candidate for a
memory operation.  Otherwise not.  Modern cmpilers are based on
SSA (call it RISC with an inifinite amount of registers which are
only assigned to once), the rest is pattern recognition and
register allocation.

>> (optimality is more difficult, but for trees has been
>> reached with tree-parsing, as used in burg or iburg).
>
> And this is useful for CISC but much less so for RISC, so you can use
> a simpler compiler for RISC instruction sets.

If you are going to make a new architecture, you have two choices:
Roll your own compiler or do a port of an existing compiler,
for example LLVM or gcc.  Mitch and Brian did the latter (LLVM),
and I think it turned out well.  (If you're doing things which are
not done in other architectures, you might have to fight some 
general optimizations which turn out to be pessimization for your
particular feature, as Brian has experienced.)

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11d6qnf$op9u$1@dont-email.me>
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>

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: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.arch
Subject: Re: CISC are not "unreduced"
Date: Fri, 13 Nov 2026 11:02:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <11d6qnf$op9u$1@dont-email.me>
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>
Injection-Date: Fri, 13 Nov 2026 11:02:07 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="812350"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19b3bQmvkym7GXppZ28KSthKFT3Zcnm4/Y="; posting-host="31b18d5936501d87b0fc37cec330dfa0"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:FOrgrBgnnZTxSTE5L7/ME8uM8r4= sha256:g8K8/Y41X3WQMUUkimKZIk4nvhW34Yfl3Yw5VJvOkNs=
	sha1:MAKWf6OC/AE4C0eBOdosNfINXtQ= sha256:5cHNg110f0P2YXm0e5ILU3lzB1oLDFy3QhZ0d3eb9gU=