Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: gah4 Newsgroups: comp.compilers Subject: Re: modifying constants in Fortran and elsewhere Date: Sun, 16 Jul 2023 19:17:22 -0700 Organization: Compilers Central Sender: johnl%iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-07-010@comp.compilers> References: <23-07-003@comp.compilers> <23-07-006@comp.compilers> <23-07-008@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="80711"; mail-complaints-to="abuse@iecc.com" Keywords: architecture, history Posted-Date: 17 Jul 2023 12:18:21 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <23-07-008@comp.compilers> Xref: csiph.com comp.compilers:3506 > 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.