🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #252

Re: more Fortran, Comment delimiters

#252
From: Bill Findlay
Date: Tue, 20 Oct 2026 19:53
50 lines
2801 bytes
On 20/10/2026 04:50, John Levine wrote:
> According to Thomas Koenig  <tkoenig@netcologne.de>:
>>> DEC F77 used a stack and allowed recursion if you were careful
>>> whereas IBM F77 did not (it used static allocation for all local
>>> variables so recursion stomped on their values).
>>
>> OS/360 calling conventions is one thing they got wrong.
> 
> My PDP-11 Unix F77 used the C compiler's back end, so recursion
> worked fine.  I made variables automatic (stack) unless you used
> a SAVE statement, which made sense in the PDP-11's limited address space.
> 
> It is quite possible to do recursion with the OS/360 calling convention.
> Their PL/I compilers did it and I believe the various ALGOL compilers,
> which had to support recursion, also used the standard calling sequence.
> 

Brian Wichmann (of Whetstone Benchmark fame) gives the following
figures for Ackermann's function, a stress test for recursion.

ALGOL 60, by architecture, mean orders/call, * = estimate

RMCS, VAX                         12.5
XALGOL, B6700                     16.0
RMCS, PE 3200                     17.5
XALGOL B5500                      19.5
ICL, ICL 2900 Series              19.5
Manchester Uni., ICL 1900 Series  33.5

System/3?0, by language and compiler

ALGOL 60, Edinburgh Uni.  /360    21.0
PL/I OPT v1.2.1, IBM      /360    61 *
ALGOL W, Stanford Uni.    /360    74 *
ALGOL 60, Delft Uni.      /360   142 *
PL/I F level v5.4, IBM	  /360   212 *
ALGOL 60, IBM F level     /360   820 *

Make of that what you will.

And for amusement:

DEC VAX: Language, Compiler

Ada, York Ada global function	   8
C optimised                        9
C	                          10
Ada, York Ada nested function	  11
Ada, RMCS compiler                12.5
Technical Details
Message-ID: <njpv6jFodo8U1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1791742457-5857@newsgrouper.org> <11b02fd$9e1u$1@dont-email.me> <465BS.66342$ACx3.13820@fx15.iad> <11b5mdi$2a843$1@dont-email.me> <11b6odq$5g5$1@gal.iecc.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Bill Findlay <findlaybill@blueyonder.co.uk>
Newsgroups: comp.arch
Subject: Re: more Fortran, Comment delimiters
Date: Tue, 20 Oct 2026 20:53:55 +0100
Lines: 50
Message-ID: <njpv6jFodo8U1@mid.individual.net>
References: <1791742457-5857@newsgrouper.org> <11b02fd$9e1u$1@dont-email.me>
 <465BS.66342$ACx3.13820@fx15.iad> <11b5mdi$2a843$1@dont-email.me>
 <11b6odq$5g5$1@gal.iecc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net lbHO6FOqIyfgrevGY5y1mwP3gUj+ATE1hr8s0sVEpP+YuFN/9s
Cancel-Lock: sha1:ePeKq9VUoa/GoiwnEtY9X8y4Ruk= sha256:kHJi6w6JxEob+yxcxrY1uK0VXtmeCArYtvPKlbliAT4=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <11b6odq$5g5$1@gal.iecc.com>