From: Dan Pop <danpop@mail.cern.ch>
Subject: Re: pcc directive ?
Date: 1995/11/21 [thread overview]
Message-ID: <9511212256.AA16674@dxmint.cern.ch> (raw)
In-Reply-To: frederic_bouquet-2111950840030001@ad74-007.compuserve.com
I guess the subject was meant to be "cpp directive".
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 ?
You forgot to mention the operating system. From your mention of RS6000
it can be assumed that you're interested in OSF/1. If this is the case,
use:
#if defined __alpha && defined __osf__
If you're sure your code will be never compiled under other Alpha OS, you
can use the simpler:
#ifdef __alpha
In general, when you want to find out which symbols are predefined on a Unix
cc, try the -v compiler option, like this:
cc -v foo.c
Dan
--
Dan Pop
CERN, CN Division
Email: danpop@mail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
next prev parent reply other threads:[~1995-11-21 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 [this message]
1995-11-22 5:00 ` Jeffrey Mogul
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