The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

    • RT @CodeWisdom: “Computer language design is just like a stroll in the park. Jurassic Park, that is.”- Larry Wall 7 minutes ago
    • RT @CodeWisdom: "Minimize complexity. The simpler the product, the more likely you are to actually ship it, and the more likely you are to… 7 minutes ago
    • RT @mgnoonan: @Nick_Craver Too many projects ship because the company wants it, not because the customer needs it. 9 minutes ago
    • RT @marcgravell: @Nick_Craver The usual alternative to "...if they ever understand it" is "...if they ever ship". Best way to understand th… 9 minutes ago
    • RT @Nick_Craver: If you’re new to this or just in denial: most large software projects ship well before they understand the problem. If the… 10 minutes ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,328 other followers

Cool little trick to show all the preset variables for your GCC/Clang compiler

Posted by jpluimers on 2016/08/30

Thanks David Berneda for sharing this a while ago:

Cool little trick to show all the preset variables for your GCC/Clang compiler:

clang -E -dM - < /dev/null

I’ve always wondered how to get these. Some are kind of surprising, especially since there are 320 of them, at least on my system.

On my system (Mavericks, I wish the sw_vers console tool would tell that): 170 lines.

–jeroen

via: Cool little trick to show all the preset variables for your GCC/Clang compiler:….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: