Date: Sun, 29 Nov 2015 09:02:42 -0553.75 From: "William A. Mahaffey III" <wam@hiwaay.net> To: freebsd-questions@freebsd.org Subject: Re: gcc macros Message-ID: <565B1248.80509@hiwaay.net> In-Reply-To: <565AD143.8040301@FreeBSD.org> References: <565A73C6.4090306@hiwaay.net> <565AD143.8040301@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/29/15 04:26, Matthew Seaman wrote: > 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 .... > Try: > > 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. > > Cheers, > > Matthew *Booooyah*, worked like a champ, *thanks* :-) !!!! -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?565B1248.80509>