Predefined compiler identifiers

James L Strickland nfs1165 at dsacg3.dsac.dla.mil
Fri Aug 24 22:22:07 AEST 1990


Thanks to all of you who sent me mail about how to identify
the predefined variables associated with C compilers.

The overwhelming consensus is to do "strings /lib/cpp" and
search the output for likely candidates.  Put the candidates
into a *.c file and run "cc -E foo.c" to determine the values
for the variables.
-- 
James Strickland - Systems Programmer  jstrickland at dsac.dla.mil
Defense Logistics Agency Systems Automation Center (DSAC)
Office of Information System Facilities, AIS Software Division,
Distributed Systems (FSD)  (614) 238-9649  AV 850-9649



More information about the Comp.unix.wizards mailing list