🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #905

Re: Large constants in RISC

#905
From: Thomas Koenig
Date: Mon, 23 Nov 2026 10:47
17 lines
2269 bytes
EricP <ThatWouldBeTelling@thevillage.com> schrieb:

> As both absolute and PC-rel methods are possible on all cpu's,

It is possible in principle for Power previous to version 3.1, but
it was painful.  The system has a TOC pointer in r2, which points
to local data and the GOT, restricted to 64k.  If you really wanted
to do pc-relative, you had to get the PC via a branch and link
instruction into the link register, then transfer it from there to
a general register.  Power version 3.0 added a add PC immediate
+ shifted instruction. V3.1 finally allows for pc-relative with
34-bit offset, in a 64-bit instruction.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11e15kh$1pgpm$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!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> <SYScnWsR3rgGWWP3nZ2dnZfqn_WdnZ2d@supernews.com> <jwv1p8hhqmy.fsf-monnier+comp.arch@gnu.org> <4m2MS.132607$Lt64.106487@fx41.iad> <jwvo6bidgit.fsf-monnier+comp.arch@gnu.org> <5yFMS.36883$gOr4.31829@fx08.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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: Large constants in RISC
Date: Mon, 23 Nov 2026 10:47:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <11e15kh$1pgpm$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>
 <SYScnWsR3rgGWWP3nZ2dnZfqn_WdnZ2d@supernews.com>
 <jwv1p8hhqmy.fsf-monnier+comp.arch@gnu.org>
 <4m2MS.132607$Lt64.106487@fx41.iad>
 <jwvo6bidgit.fsf-monnier+comp.arch@gnu.org>
 <5yFMS.36883$gOr4.31829@fx08.iad>
Injection-Date: Mon, 23 Nov 2026 10:47:46 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1884982"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18VIHaKs4vWTIORmiS3aKHfq4L6IIQBD7k="; posting-host="c51b358a6ae028b8c7500845214ed723"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:6Gpj1LNLszT+OO9PI3A12OpMMHw= sha256:GWbt6+MwV+nN8fH5CkZzDUtkjxd0hP6f5Rrm4ao8ipE=
	sha1:whMepVeizVqzaczU+W1z42WobWA= sha256:FtogSxZenQT20xYeS8vA/eiPdB5katpWytlvSId/df4=