🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #765

Re: Large constants in RISC

#765
From: MitchAlsup
Date: Sun, 15 Nov 2026 19:08
30 lines
2348 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> Robert Finch <robfi680@gmail.com> writes:
> >One ends up with constants in the data cache. May be slower than having 
> >constants inline from the I$. One thought it to have instructions that 
> >can load constants using the I$.
> 
> There is no data path from the I-cache to the load unit in existing
> CPUs.  I also expect that if you add such a data path, it will be
> slower, because the I-cache is not close to the LSU, but close to the
> decoder and the branch predictor.  So that idea is not going to fly.

You do NOT need said path, what you need is for the constant to show up
from the instruction stream and be parse-able from that instruction
stream easily. Given really small (1-wide) low ends, one might use a
4-word aligned fetch--higher end machines will need correspondingly
wider Fetch and more prediction accuracy.
 
> The better approach is to have the data in the instructions, and
> extract it during instruction decoding, like all the immediate
> operands in all instruction sets around do.  Or to have the data in
> data memory and access it with a load that works with the D-cache,
> like Alpha and others do.
> 
> >ARM has shifted constant instruction too.
> 
> Not in ARM A64.  But ARM A64 has an interesting encoding for certain
> bit patterns.
> 
> - anton
Technical Details
Message-ID: <1794769700-5857@newsgrouper.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!newsgrouper.org!.POSTED!not-for-mail
References: <11d76uq$11cdc$1@paganini.bofh.team> <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team> <11dabct$26fdl$1@dont-email.me> <11dahac$2t74$1@gal.iecc.com> <11dauv4$2csdn$1@dont-email.me> <2026Nov15.172809@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!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: Large constants in RISC
References: <11d76uq$11cdc$1@paganini.bofh.team> <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team> <11dabct$26fdl$1@dont-email.me> <11dahac$2t74$1@gal.iecc.com> <11dauv4$2csdn$1@dont-email.me> <2026Nov15.172809@mips.complang.tuwien.ac.at>
Date: Sun, 15 Nov 2026 19:08:20 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1794769700-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Sun, 15 Nov 2026 19:08:20 GMT
User-Agent: Newsgrouper/0.9.0