gcc macros

Matthew Seaman matthew at FreeBSD.org
Sun Nov 29 10:20:05 UTC 2015

On 29/11/2015 03:39, William A. Mahaffey III wrote:
> I use the Intel compiler suite (icc & ifort) to maintain some inhouse
> code under Linux. The man pages for icc clearly list all macros defined
> &/or used by icc in one neat section. I have yet to locate such a
> listing for macros under gcc's under FreeBSD 9.3R (gcc48, gcc49 & gcc5).
> Is there such a listing documented somewhere, & if so where ? TIA & have
> a good one ....


  cc -dM -E - < /dev/null

which will print all of the pre-processor definitions used by the
compiler.   You can add other flags like eg.  --std=c89 if you like.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 957 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20151129/0967fcba/attachment.bin>

More information about the freebsd-questions mailing list