2

I came across this option of -E while navigating and searching for where the file descriptors of stdio.h is stored in the machine? But I am not sure what exactly this command gcc -E do? Can it be used to view the file descriptor of the stdio.h fie stored in /usr/include/ directory?

1
  • 1
    Man pages are your friend. E.g. "man gcc" at the unix (or unix-based system) prompt will tell you about all the command flag options.
    – kbshimmyo
    Apr 4, 2017 at 1:24

2 Answers 2

11

It tells GCC to stop after the preprocessing stage. Details in the link.

https://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#Overall-Options

5

It will show the output the compiler produces after expanding all macros.

Not the answer you're looking for? Browse other questions tagged or ask your own question.