Re: Undefined Behavior Optimizations in Fortran

gah4 <gah4@u.washington.edu>
Thu, 26 Jan 2023 17:50:32 -0800 (PST)

          From comp.compilers

Related articles
Re: Undefined Behavior Optimizations in C 864-117-4973@kylheku.com (Kaz Kylheku) (2023-01-09)
Re: Re: Undefined Behavior Optimizations in C jonathanchesterfield@gmail.com (Jon Chesterfield) (2023-01-10)
Re: Undefined Behavior Optimizations in C david.brown@hesbynett.no (David Brown) (2023-01-11)
Re: Undefined Behavior Optimizations in C spibou@gmail.com (Spiros Bousbouras) (2023-01-18)
Re: Undefined Behavior Optimizations in C david.brown@hesbynett.no (David Brown) (2023-01-18)
Re: Undefined Behavior Optimizations in C gah4@u.washington.edu (gah4) (2023-01-23)
Re: Undefined Behavior Optimizations in Fortran sgk@REMOVEtroutmask.apl.washington.edu (Steven G. Kargl) (2023-01-26)
Re: Undefined Behavior Optimizations in Fortran gah4@u.washington.edu (gah4) (2023-01-26)
| List of all articles for this month |
From: gah4 <gah4@u.washington.edu>
Newsgroups: comp.compilers
Date: Thu, 26 Jan 2023 17:50:32 -0800 (PST)
Organization: Compilers Central
References: 23-01-027 <sympa.1673343321.1624.383@lists.iecc.com> 23-01-031 23-01-041 23-01-062 23-01-063 23-01-073
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="94396"; mail-complaints-to="abuse@iecc.com"
Keywords: Fortran, standards, comment
Posted-Date: 26 Jan 2023 21:24:07 EST
In-Reply-To: 23-01-073

On Thursday, January 26, 2023 at 11:00:02 AM UTC-8, gah4 wrote:


(snip)


> Now, the original subject of this thread, is the cost vs. benefit of such
> optimizations. Not so obvious the benefit, but there is a cost when people
> try to debug programs where things are optimized away.


> [Gee, it's been a while since I thought about SSP. I believe that IBM wrote
> it largely to give people code that would get reasonable numeric answers
> with the 360's funky floating point. Then there were a few odds and ends
> like RANDU. They never promised the code would work on anything other
> than IBM 360 Fortran. -John]


It seems that there is also SSP for the IBM 1130, which is 16 bit binary,
so probably also a 32 bit two's complement integer.


There is a PL/I SSP, but seems not to have RANDU.


When I was in high school, we had CALL/OS, with PL/I, and
I used the RANDU algorithm, as I didn't have any other one.


As you say, it wasn't promised to work with any other Fortran,
but others did try to stay compatible with IBM.
(But often with non-IBM extensions.)


Fortran systems that I know, are good at ignoring fixed point
overflow, though often trap or count floating point overflow.
[I took a look, RANDU on the 1130 repeated after 2^13 items.
Yow. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.