Re: #IFDEFs in a multi platform environment

From: Stanley F. Quayle (squayle_at_insight.rr.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 11:24:05 -0400

On 30 Sep 2004 at 14:22, Fred Kleinsorge wrote:
> In retrospect, most of the changes needed in porting truly are a
> result of an inappropriate use of __ALPHA to mean NOT __VAX. The
> compiler is (I believe) being changed so that the redefinition of
> __ALPHA is an informational as opposed to a warning - for those not
> able or willing to make the source code changes.

The Itanium porting guide says not to redefine "__ALPHA" and other
such pre-defined symbols. Doing so will cause the system-provided
header files to break.

It's a pain, but I changed about 200 "#ifdef __ALPHA" to "#ifndef
VAX" in my client's code. And you will have to do it, too.

The good news is that you'll probably not have to change this again
for the next processor.

--Stan Quayle
Quayle Consulting Inc.

----------
Stanley F. Quayle, P.E. N8SQ +1 614-868-1363
8572 North Spring Ct., Pickerington, OH 43147 USA
stan-at-stanq-dot-com http://www.stanq.com



Relevant Pages

  • Re: #IFDEFs in a multi platform environment
    ... >> In retrospect, most of the changes needed in porting truly are a ... >> compiler is being changed so that the redefinition of ... >> able or willing to make the source code changes. ...
    (comp.os.vms)
  • VEST (was: DIBOL to
    ... You'd have to VEST the result of the compiler to get something that runs on Alpha, ... images the compiler relied on would generate Alpha code. ... Quayle Consulting Inc. ...
    (comp.os.vms)