Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can someone break this line apart gcc -E -dM - </dev/null

Tags:

c++

gcc

Just came across this guy that left me stunned:

gcc -E -dM - </dev/null

This part is confusing to me:

 - </dev/null   
like image 777
vehomzzz Avatar asked Oct 07 '09 01:10

vehomzzz


1 Answers

That gives a listing of all the predefined macros in gcc. -E means run the preprocessor. -dM means dump the predefined macros from the preprocessor. The - is for reading from standard input and /dev/null just feeds in an empty source file.

like image 75
karunski Avatar answered Sep 27 '22 18:09

karunski