Article View: comp.arch
Article #723Re: Large constants in RISC
From: Theo
Date: Sat, 14 Nov 2026 18:04
Date: Sat, 14 Nov 2026 18:04
30 lines
1728 bytes
1728 bytes
BGB <cr88192@gmail.com> wrote: > On 11/13/2026 10:12 AM, Terje Mathisen wrote: > > Waldek Hebisch wrote: > > > > Why not just have a prefix opcode that says that the next 32 or 64 bits > > is a constant? > > > > I agree. > > > I went the prefix route, it works well in practice, and less bad than > most other options. > > Even if yes, a prefix means the value is a bit chewed. But, this is > hardly a new thing in most RISC style designs. On aarch32 it could be something simple like: LDR rN, [pc,#4]! DCD 0xdeadbeef ; code continues here although on small designs that might create a pipeline bubble. It wouldn't with a branch predictor. That would be harder on ISAs where the pc is hidden away, but the prefix instruction could have a similar effect. Theo
Technical Details
Message-ID:
<cJi*YIIVA@news.chiark.greenend.org.uk>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mailReferences:
<11d76uq$11cdc$1@paganini.bofh.team> <11d7ct8$17akn$1@dont-email.me> <11d7nf3$1b064$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: Theo <theom+news@chiark.greenend.org.uk>
Newsgroups: comp.arch
Subject: Re: Large constants in RISC
Date: 14 Nov 2026 18:04:58 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <cJi*YIIVA@news.chiark.greenend.org.uk>
References: <11d76uq$11cdc$1@paganini.bofh.team> <11d7ct8$17akn$1@dont-email.me> <11d7nf3$1b064$1@dont-email.me>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:93.93.131.173";
logging-data="20670"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-44-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([93.93.131.173])