🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #625592

Re: something like a 360, was PDP 11/40 system manual

#625592
From: John Levine
Date: Mon, 13 Aug 2018 18:13
37 lines
2814 bytes
In article <pks7k7$jf0$1...@dont-email.me>,
Dan Espen  <dan1...@gmail.com> wrote:
>>>>> LARL R11,SUB1   R11 <- subroutine address and base
>>>>> BALR R14,R11   Go to subroutine
>>>> 
>>>> LARL?  No 360 I ever used had that instruction.
>>> 
>>> Right, the macro for this originally did:
>>> 
>>>  L  R11,=A(SUB1)
>>
>> But, LARL loads a PC-relative address, but your L generates an ADCON.

Right, and LARL is position independent while adcons are not.

If you're on a machine that has LARL, you can skip the base register
for your code, use relative addressing in all your code and just call
it with BRAS.

>> As long as you don't call anything that uses standard linkage conventions.
>
>Of course.
>
>One could use standard linkage for subroutine calls, but it's just
>not efficient.  I don't think any IBM compiler does so.

I can assure you that Fortran G, H, and X and PL/I F and X certainly
did.  That's why you could call a subroutine written in one language
from another.

On Linux systems that use ELF objects there's another calling sequence
that handles the PLT and GOT needed for position independent code.

-- 
Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID: <pkshog$t6t$1@gal.iecc.com>
Path: mbox-mo1.pugleaf.net!g5-v6ni4313iti.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.snarked.org!news.ripco.com!adore2!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
References: <21aaeee8-c41a-4442-a4eb-ea6a29b1e4f1@googlegroups.com> <pkqesi$agc$1@dont-email.me> <1904050189.555850896.599407.peter_flass-yahoo.com@news.eternal-september.org> <pks7k7$jf0$1@dont-email.me>

Show Full Headers
Complete Article Headers
X-Received: by 2002:a6b:680b:: with SMTP id d11-v6mr8290515ioc.19.1534184017464;        Mon, 13 Aug 2018 11:13:37 -0700 (PDT)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 2002:a24:f70d:: with SMTP id x13-v6ls1430741ith.5.gmail; Mon, 13 Aug 2018 11:13:36 -0700 (PDT)
X-Received: by 2002:a24:f707:: with SMTP id x7-v6mr6622908ith.11.1534184016596;        Mon, 13 Aug 2018 11:13:36 -0700 (PDT)
MIME-Version: 1.0
Path: mbox-mo1.pugleaf.net!g5-v6ni4313iti.0!nntp.google.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.snarked.org!news.ripco.com!adore2!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: John Levine <jo...@taugh.com>
Newsgroups: alt.folklore.computers
Subject: Re: something like a 360, was PDP 11/40 system manual
Date: Mon, 13 Aug 2018 18:13:36 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <pkshog$t6t$1@gal.iecc.com>
References: <21aaeee8-c41a-4442-a4eb-ea6a29b1e4f1@googlegroups.com> <pkqesi$agc$1@dont-email.me> <1904050189.555850896.599407.peter_flass-yahoo.com@news.eternal-september.org> <pks7k7$jf0$1@dont-email.me>
Injection-Date: Mon, 13 Aug 2018 18:13:36 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="29917"; mail-complaints-to="ab...@iecc.com"
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: jo...@iecc.com (John Levine)
Bytes: 2300
Lines: 36
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit