🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #775

Re: Large constants in RISC

#775
From: Thomas Koenig
Date: Mon, 16 Nov 2026 09:05
32 lines
2608 bytes
Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:
> Thomas Koenig <tkoenig@netcologne.de> writes:
>>Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:
>>> In any case, there is no empirical evidence "that having [large]
>>> constants in instructions is faster."  And the weak evidence that we
>>> currently have, points in the other direction.  So we have every
>>> reason to doubt that claim.
>>
>>If you want data, you can look at a RISC architecture which has
>>adopted 34-bit constants.
>
> Which one?  And does it have faster implementations than ARM A64 which
> does not have such a feature last I looked.

Power ISA v3.1 (aka Power 10).
>
>>They can save quite something on TOC
>>for pc-relative code.
>
> TOC?

Table of contents, for accessing global data.  Their ABI has
a special register for that, r2, which is no longer needed
for pc-relative code (also introduced with v3.1).  Plus, size
restrictions were lifted.

Interestingly enough, they (partially) followed Mitch on that.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11deh16$3dssn$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11d76uq$11cdc$1@paganini.bofh.team> <11d7ct8$17akn$1@dont-email.me> <11d7ih2$11orr$1@paganini.bofh.team> <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team> <2026Nov14.201017@mips.complang.tuwien.ac.at> <6af911ea.18530156@news.eternal-september.org> <2026Nov15.173606@mips.complang.tuwien.ac.at> <11ddbps$34jn8$1@dont-email.me> <2026Nov16.082231@mips.complang.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!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: Large constants in RISC
Date: Mon, 16 Nov 2026 09:05:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <11deh16$3dssn$1@dont-email.me>
References: <11d76uq$11cdc$1@paganini.bofh.team>
 <11d7ct8$17akn$1@dont-email.me> <11d7ih2$11orr$1@paganini.bofh.team>
 <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team>
 <2026Nov14.201017@mips.complang.tuwien.ac.at>
 <6af911ea.18530156@news.eternal-september.org>
 <2026Nov15.173606@mips.complang.tuwien.ac.at>
 <11ddbps$34jn8$1@dont-email.me>
 <2026Nov16.082231@mips.complang.tuwien.ac.at>
Injection-Date: Mon, 16 Nov 2026 09:05:43 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3601303"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19nbHJhkpwm+dTZgQvEcyyMe0RFXjWKhJA="; posting-host="ec4c1d64bc1f23dc29d313fef0d712f6"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:H1Kz0YL3Kh9Kwv+U/QfJrzbe2EA= sha256:B07RtwCR6o7Gd0R3aCoZrJ9O2Qdep7yVxqBnbwqxI2U=
	sha1:47c0lcT1q96w9SHlJjAFJaKLdVs= sha256:NLIFOLKYJCF5nCrk8Ds909/HR0L2/2JIA/kiUP3Lbeo=