Dump gcc Preprocessor Macro Definitions

t

Blog categories: 

Today I wanted to get all macro definitions from gcc - including those defined internally. I knew it some tim ago, but forgot the command again, so I paste it in here for all of you.

gcc -dM -E - < /dev/null | sort

That’s it and cheers,
iss

nesono

Comments

I think I remember to have read this in the “AMM wiki” some years ago… =o)

CU, -oli-

but the amm wiki is not in the wild wild west (www). cheerio, iss