From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ac7229720180cbcd X-Google-Attributes: gid1164f8,public From: mogul@pa.dec.com (Jeffrey Mogul) Subject: Re: pcc directive ? Date: 1995/11/22 Message-ID: <48tu1i$rn9@usenet.pa.dec.com>#1/1 X-Deja-AN: 119938017 references: organization: DEC Western Research newsgroups: comp.sys.dec In article 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