gcc -dM -E - </dev/null

List of macros defined by gcc

Lists all macros and their values defined by gcc.
Sample Output
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
#define __FLT_EVAL_METHOD__ 0

3
By: slower
2013-09-30 15:08:34

These Might Interest You

  • doskey is the Windows cmd.exe equivalent of the Unix alias. '$*' means 'all parameters' This example is like alias l='ls -alrt': it will display files from oldest to newest, for one or more directories. doskey /MACROS list macros defined for cmd.exe, like 'alias' list aliases defined for the current Unix shell.


    -7
    doskey l=dir /OD $*
    VonC · 2009-02-15 00:29:23 0

  • 13
    compgen -A function
    patrick2000 · 2010-04-30 14:27:16 0
  • use vim like less command pager but with color highlighting = pretty :p also u can use /usr/share/vim/vim73/macros/less.sh


    7
    alias vless='/usr/share/vim/vimcurrent/macros/less.sh'
    Bonster · 2012-04-28 23:01:25 1
  • typeset command gives to stdout all the functions defined in a bash session, -f and -F switches are for: all functions names with body (-f) and all functions names only (-F). Show Sample Output


    2
    typeset -f
    kLeZ · 2012-09-17 13:48:39 0

  • 5
    declare -F | cut -d ' ' -f 3
    wilmoore · 2010-05-29 08:19:47 0
  • If you issue the "set" command, you'll see a list of variables and functions. This command displays just those functions' names. Show Sample Output


    1
    set | fgrep " ()"
    haivu · 2009-10-22 17:48:54 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: