From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f79df321ef1d2c00 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-06-17 21:07:42 PST Path: sparky!uunet!mcsun!uknet!lsl!robin From: robin@lsl.co.uk (Robin Fairbairns) Newsgroups: comp.sys.dec Subject: Re: Porting to Alpha VMS Message-ID: <1992Jun18.102322.2054@lsl.co.uk> Date: 18 Jun 92 09:23:21 GMT References: <1992Jun16.131316.23012@nntpd.lkg.dec.com> <1992Jun17.101358.2044@lsl.co.uk> Organization: Laser-Scan Ltd., Cambridge In article , cmr@world.std.com (Charles M Richmond) writes: > [quotes from me deleted] > > 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." Since DEC C for the Alpha is supposed to be going to be ANSI-compliant, I would assume that your problem would not arise in the port to Alpha. -- Robin Fairbairns, Senior Consultant, postmaster and general dogsbody Laser-Scan Ltd., Science Park, Milton Rd., Cambridge CB4 4FY, UK Email: robin@lsl.co.uk --or-- rf@cl.cam.ac.uk