64 bit architectures and C/C++

Ray Dunn ray at philmtl.philips.ca
Thu May 16 05:00:16 AEST 1991


In referenced article, bhoughto at pima.intel.com (Blair P. Houghton) writes:
>>2. If a trade-off has to be made between compliance and ease of
>>porting, what's the better way to go?
>
>If you're compliant, you're portable.

This is like saying if the syntax is correct then the semantics must be too
although, indeed, there is no need to trade compliance for portability.

There are dangers clearly visible though.  All you can say is that your
compliant program has an excellent chance of compiling on another system
running a compliant compiler, not that it will necessarily work correctly
with the new parameters plugged in.

You only know a program is portable *after* you've tested it on another
system.  How many do that during the initial development cycle?

Porting is not an issue that goes away by writing compliant code - it may
in fact *hide* some of the problems.

If I wanted to be controversial, I might say that 'C's supposed
"portability" is a loaded cannon.  Bugs caused by transferring a piece of
software to another system will continue to exist, even in compliant
software.  Prior to "portable" 'C', porting problems were *expected*,
visible, and handled accordingly.

Will developers still assume these bugs to be likely, and handle
verification accordingly, or will they be lulled by "it compiled first
time" into thinking that the portability issue has been taken into account
up front, and treat it with less attention than it deserves?
-- 
Ray Dunn.                    | UUCP: ray at philmtl.philips.ca
Philips Electronics Ltd.     |       ..!{uunet|philapd|philabs}!philmtl!ray
600 Dr Frederik Philips Blvd | TEL : (514) 744-8987  (Phonemail)
St Laurent. Quebec.  H4M 2S9 | FAX : (514) 744-9550  TLX: 05-824090



More information about the Comp.lang.c mailing list