Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #3506

Re: modifying constants in Fortran and elsewhere

From gah4 <gah4@u.washington.edu>
Newsgroups comp.compilers
Subject Re: modifying constants in Fortran and elsewhere
Date 2023-07-16 19:17 -0700
Organization Compilers Central
Message-ID <23-07-010@comp.compilers> (permalink)
References <23-07-003@comp.compilers> <23-07-006@comp.compilers> <23-07-008@comp.compilers>

Show all headers | View raw


> Our esteemed moderator wrote:

(snip)

> I was there, I actually used this stuff. Re abuse of the upper byte, as the size of
> OS/360 exploded way past what they expected, programmers were under pressure to make
> every bit and byte count, hence overloading the high byte. -John]

Funny how history repeats itself.  (As the saying goes.)

In this case, it was only the one bit, and with 31 bit addressing, it could
still be used.  Though the compile doesn't actually check for the end of
the argument list.

Much of OS/360, at all levels, uses the high byte of addresses.
Most important, in the DCB used for much I/O.  With the transition to 31 bit
and 64 bit addressing, much of the old control blocks are still there.
The DCB is in user address space, and so not easily replaced.

Much of that is still true in OS/390 and z/OS, the 31 bit and 64 bit OS.

And then years later, Apple creates the Macintosh, and (original) MacOS.
And with 24 bit addressing on the 68000, uses the high byte of addresses.

Then with the 68020, there were programs known to be 32 bit clean,
and those that were not.

I suspect that all the hard learned lessons from the mainframe days were
relearned in the microcomputer days.

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

modifying constants in Fortran and elsewhere gah4 <gah4@u.washington.edu> - 2023-07-10 19:42 -0700
  Re: modifying constants in Fortran and elsewhere Thomas Koenig <tkoenig@netcologne.de> - 2023-07-15 10:57 +0000
    Re: modifying constants in Fortran and elsewhere Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2023-07-16 11:56 +0200
    Re: modifying constants in Fortran and elsewhere Thomas Koenig <tkoenig@netcologne.de> - 2023-07-16 13:08 +0000
      Re: modifying constants in Fortran and elsewhere gah4 <gah4@u.washington.edu> - 2023-07-16 19:09 -0700
        Re: modifying constants in Fortran and elsewhere gah4 <gah4@u.washington.edu> - 2023-07-17 10:51 -0700
      Re: modifying constants in Fortran and elsewhere gah4 <gah4@u.washington.edu> - 2023-07-16 19:17 -0700
  Re: modifying constants in Fortran and elsewhere David Brown <david.brown@hesbynett.no> - 2023-07-17 13:09 +0200

csiph-web