Willus.org Home   |   Archive   |   About  

Willus.com's MinGW/Gnu C Tips

MinGW Tips
Install Notes
Starter Links
Compile Flags
Fast Math Funcs
Binary Stdout
Predefined Macros
Linker Map
Show All Tips
  Seeing all predefined macros
Here's how to see all predefined macros from gcc. Create a file test.c that has one line in it:

  int main(void) {}

Then compile with this command:

  gcc -dM -E test.c

Even easier (I got an e-mail tip on this)

  echo . | gcc -dM -E -

(These work with any gcc port.)

MinGW Links
MinGW64 Home
MinGW Home
Users Mail Archive
MinGW Bug List
Gnu C Home

Willus.com Links
Willus.com Home
Win32/64 Compilers
Win32/64 Software
Compiler Benchmark

This page last modified
Saturday, 13-Jun-2020 10:54:52 PDT