Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: cmr@world.std.com (Charles M Richmond)
Subject: Re: Porting to Alpha VMS
Date: Fri, 19 Jun 1992 02:27:19 GMT	[thread overview]
Message-ID: <Bq2MtK.3G8@world.std.com> (raw)
In-Reply-To: 11q1opINNrmv@grapevine.EBay.Sun.COM

smckinty@sunicnc.France.Sun.COM (Steve McKinty - Sun ICNC) writes:

>In article <1992Jun18.102322.2054@lsl.co.uk>, robin@lsl.co.uk (Robin Fairbairns) writes:
>   > In article <BpzK5r.6v2@world.std.com>, cmr@world.std.com (Charles M Richmond) writes:
>   > > 
>   > > One of the gotchas that I ran into in a major port from Vax/Ultrix to
>   > > Risc/Ultrix (more than 750,000 lines), was that the coders had used
>   > > the availability of address "0" to skip checks for null pointers. The
>   > > other problem was that structures were cast as byte streams and vice
>   > > versa, which enforced the coders idea of how the structures were packed.
>   > 
>   > Quoting from my (non-final) copy of the C standard, para 3.2.2.3: "An 
>   > integral constant expression with the value 0, or such an expression 
>   > cast to type void *, is called a _null pointer constant_.  ....  Such a 
>   > pointer, called a _null pointer_, is guaranteed to compare unequal to 
>   > any object or function."
>   > 
>I suspect the problem isn't with null pointer constants, but with pointers
>containing a zero value. If you dereference such a pointer (and thus access
>location zero) the standard doesn't say what will happen. On a VMS VAX you'll
>get an memory access violation, because the first 512 bytes are intentionally
>inaccessible to catch this sort of error/laziness. .....

>Steve


BINGO!

Charlie
-- 
*****************************************************************************
*                                                                           *
*  Charles Richmond 	International Integrated Systems Corporation        *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431            *


  parent reply	other threads:[~1992-06-19  2:27 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-05-23  3:04 DECs commitment to UNIX ? Mark Hittinger
1992-05-23  3:21 ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-24 17:53 ` Reha Elci
1992-05-26  9:46   ` Michel Fingerhut
1992-05-28  7:53     ` Alex Martelli
1992-05-26 16:10   ` CP/M lives!
1992-05-26 18:22 ` Greg Vesper - RMS
1992-05-26 21:18   ` Tom B. O'Toole
1992-05-26 21:22     ` Steve Thompson
1992-05-27 22:04     ` William Pietri
1992-05-28  3:06       ` Jack Churchill
1992-05-28 17:07       ` Tom B. O'Toole
1992-05-29 13:50         ` Thaddeus P. Floryan
1992-05-28  6:45     ` Douglas Miller
1992-05-24  2:12       ` Bob Condon; x6303
1992-06-08 18:27         ` Mark Bartelt
1992-06-10 22:04         ` Hans Jespersen
1992-05-27 23:58       ` Harry Flowers
1992-05-28  3:20         ` VMS vs UNIX (was Re: DECs commitment to UNIX ?) Marcus J. "will do TCP/IP for food" Ranum
1992-06-02  3:06           ` Carl J. Appellof
1992-05-28 16:34         ` DECs commitment to UNIX ? CP/M lives!
1992-05-29 13:40       ` Thaddeus P. Floryan
     [not found]     ` <1992May27.220446.21908@terminator.c <6801@public.BTR.COM>
1992-05-31 16:14       ` Open VMS Douglas Miller
1992-06-02 14:02         ` Thaddeus P. Floryan
1992-06-02 21:43           ` Charles M Richmond
1992-06-03 10:54             ` Thaddeus P. Floryan
1992-06-03 20:51               ` <None> arthur
1992-06-04 15:05                 ` <None> Jim Reiss
1992-06-11  8:40                   ` Porting to Alpha VMS (was Re: <None>) Robin Fairbairns
1992-06-11 15:06                     ` Porting to Alpha VMS Jim Reiss
1992-06-12 12:13                       ` Dave Marra
1992-06-15 14:50                         ` Jim Reiss
1992-06-15 17:17                           ` hourahaner
1992-06-16 13:13                           ` Dave Marra
1992-06-17  9:13                             ` Robin Fairbairns
1992-06-17 10:37                               ` Charles M Richmond
1992-06-18  9:23                                 ` Robin Fairbairns
1992-06-18 13:06                                   ` Steve McKinty - Sun ICNC
1992-06-18 20:23                                     ` Matthew B. Kirk
1992-06-19  2:27                                     ` Charles M Richmond [this message]
1992-06-17 15:25                               ` system
1992-06-17 14:45                             ` Jim Reiss
1992-06-17 18:44                               ` Steve McKinty - Sun ICNC
1992-06-18 12:17                             ` Greg Pavlov
1992-06-19 20:22                               ` gezelter
1992-06-20 21:44                                 ` CP/M lives!
1992-06-22  0:33                                   ` Bob Supnik
1992-06-26 16:23                                     ` CP/M lives!
1992-06-26 17:33                                       ` Dileep Bhandarkar
1992-06-26 20:26                                         ` CP/M lives!
1992-06-11 17:43                     ` Porting to Alpha VMS (was Re: <None>) Kurt Reisler
1992-06-12 10:49                       ` pawlak
1992-06-11 10:26                   ` <None> Burkhard Neidecker-Lutz
1992-06-05 17:10           ` Open VMS Stick in the mud....
1992-06-02  3:02     ` DECs commitment to UNIX ? Carl J. Appellof
     [not found]     ` <1992May27.220446.21908@terminator.c <6857@public.BTR.COM>
1992-06-07 18:52       ` Open VMS Douglas Miller
1992-05-27 12:58   ` DECs commitment to UNIX ? Michael Schuster 8726004 (Prak1 Gerhard)
1992-05-27 15:17   ` Greg Pavlov
1992-05-27 21:47 ` William Pietri
1992-05-28  3:44 ` Mark Hittinger
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