Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: [++] Tight coding
Date: 1998/03/03	[thread overview]
Message-ID: <1998Mar3.070659.1@eisner> (raw)
In-Reply-To: slrn6fk0pe.5t2.peter@eepjm.newcastle.edu.au


In article <slrn6fk0pe.5t2.peter@eepjm.newcastle.edu.au>, peter@eepjm.newcastle.edu.au (Peter Moylan) writes:
> Bill Moyer <billm@cygnus.com> wrote:

>> [...]  Use of memory segmentation would help pin-
>>point which data structure (or catagory of data structures)
>>was corrupted, and allow recovery routines to perhaps repair 
>>the damage and continue with application execution; this 
>>would be a big improvement over "Segmentation Fault; core 
>>dumped" or "GPF 314159".  
> 
> One of my major gripes about C is the strong influence it's
> had on operating systems design.
> 
> We have memory segmentation.  We've had it for years.  What
> we don't have are operating systems that make proper use
> of the segmentation hardware.

I am not sure what further operating system support is needed.
In User Mode (on VMS) as a programmer I can allocate memory
sparsely in my virtual address space.  I can set the protection
of pages I choose to be read-only.

Now I do _not_ want the operating system or compiler doing
this behind my back to save me from my own programming errors
in most cases, because the classes of errors that are easy to
catch through _automated_ checking beyond language semantics
are generally quite unlikely (so long as one avoids pointer
arithmetic).

One notable exception is stack guard pages (no-access pages to
cause an exception if one overflows the stack), which I feel
are generally useful.  But I have those, thanks to collusion
between the compiler and the operating system.

I wouldn't mind having automatic stack expansion in each
thread the way I have had it for 17 years in an unthreaded
program.  In a world of 64-bit addressing that is perfectly
feasible for today's programs.  I would classify that as an
ease-of-programming issue, however, rather than a detection
of defects issue.

So I disagree that: "What we don't have are operating systems
that make proper use of the segmentation hardware." Although
of course not all operating systems are equal.  I was under the
impression that OS/400 had a rich selection of memory access
controls, and I have always presumed the same for MVS.

But I am quite willing to be proven wrong.  Tell me what else
the operating system could do for me, so I can put it on my
wish list.

Larry Kilgallen



  parent reply	other threads:[~1998-03-03  5:00 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-23  5:00 Wildfire and NT Robert Harley
1998-02-24  5:00 ` brianh
1998-02-24  5:00   ` David Hinds
1998-02-25  5:00     ` Del Cecchi
1998-02-25  5:00     ` brianh
1998-02-24  5:00   ` Bill Moyer
1998-02-25  5:00     ` Larry Kilgallen
1998-02-25  5:00       ` brianh
1998-02-25  5:00         ` Epiphanies (was: Wildfire and NT) Carlie Coats
1998-02-25  5:00     ` Wildfire and NT John Hascall
1998-02-25  5:00       ` Rob Rodgers
1998-02-24  5:00   ` Sean Burke
1998-02-25  5:00     ` brianh
1998-02-25  5:00     ` Mike Albaugh
1998-02-25  5:00     ` [++] Tight coding (Was: Re: Wildfire and NT) Terje Mathisen
1998-02-28  5:00       ` Piercarlo Grandi
1998-03-01  5:00       ` [++] Tight coding Bill Moyer
1998-03-01  5:00         ` Larry Kilgallen
1998-03-01  5:00           ` [++] Tight coding (comp.sys.dec-only thread) Bill Moyer
1998-03-01  5:00         ` [++] Tight coding Ruud Bruijnesteijn
1998-03-01  5:00           ` scott
1998-03-02  5:00             ` Kaz Kylheku
1998-03-02  5:00             ` Terry Moore
1998-03-02  5:00               ` Pete Becker
1998-03-03  5:00                 ` Ruud Bruijnesteijn
1998-03-03  5:00                   ` Pete Becker
1998-03-04  5:00                     ` Terry Moore
1998-03-03  5:00                       ` Pete Becker
1998-03-04  5:00                       ` Ruud Bruijnesteijn
1998-03-02  5:00               ` Kaz Kylheku
1998-03-02  5:00             ` Martin Tom Brown
1998-03-02  5:00         ` Peter Moylan
1998-03-02  5:00           ` Martin Harvey
1998-03-02  5:00           ` Scott Fluhrer
1998-03-02  5:00           ` Kaz Kylheku
1998-03-02  5:00           ` Lawrence Kirby
1998-03-02  5:00             ` Peter Moylan
1998-03-02  5:00               ` Kaz Kylheku
1998-03-02  5:00               ` Ketil Z Malde
1998-03-04  5:00                 ` Lyn A Headley
1998-03-03  5:00               ` Lawrence Kirby
1998-03-03  5:00           ` Larry Kilgallen [this message]
1998-02-25  5:00     ` Wildfire and NT Maynard Handley
1998-02-25  5:00   ` Bernd Paysan
1998-02-25  5:00     ` brianh
1998-02-26  5:00       ` Doug
1998-02-26  5:00         ` Jeffrey S. Dutky
1998-02-26  5:00       ` Bernd Paysan
1998-02-27  5:00         ` brianh
1998-03-01  5:00           ` Ketil Z Malde
1998-02-27  5:00   ` Paul Kahler
1998-03-02  5:00     ` Joel Gallun
1998-03-02  5:00       ` Przemek Klosowski
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox