Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mogul@pa.dec.com (Jeffrey Mogul)
Subject: Re: pcc directive ?
Date: 1995/11/22	[thread overview]
Message-ID: <48tu1i$rn9@usenet.pa.dec.com> (raw)
In-Reply-To: frederic_bouquet-2111950840030001@ad74-007.compuserve.com

In article <frederic_bouquet-2111950840030001@ad74-007.compuserve.com> frederic_bouquet@ascus.com (Frederic Bouquet) writes:
>I have to compile a source code on a DecAlpha machine. In this source code
>there are some machine dependant part (delimited with #ifdef RS6000 ...
>#endif).
>On a DecAlpha is there a predefine command so that I can enter "#ifdef
>decalpha". Is decalpha exists ? if not what is the right name ?

On Digital UNIX V3.2, "man cc" includes this handy table:

  The following table shows which macros are defined for each of the -std
  flags.

  ______________________________________________
  Macro                   std0        std   std1
                          (default)
  ______________________________________________
  LANGUAGE_C              yes         no    no
  __LANGUAGE_C__          yes         yes   yes
  unix                    yes         no    no
  __unix__                yes         yes   yes
  __osf__                 yes         yes   yes
  __alpha                 yes         yes   yes
  SYSTYPE_BSD             yes         no    no
  _SYSTYPE_BSD            yes         yes   yes
  LANGUAGE_ASSEMBLY       yes         yes   yes
  __LANGUAGE_ASSEMBLY__   yes         yes   yes
  ______________________________________________

In other words, it depends somewhat on what compilation flags you
provide, but "#ifdef __alpha" should work in all cases.

(The "__LANGUAGE_C__" and "__LANGUAGE_ASSEMBLY__" stuff is only
defined for .c and .s files, respectively.)

-Jeff



      parent reply	other threads:[~1995-11-22  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-21  5:00 pcc directive ? Frederic Bouquet
1995-11-21  5:00 ` Dan Pop
1995-11-22  5:00 ` Jeffrey Mogul [this message]
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