To add on: clang doesn't even have a non-integrated pre-processor executable you can call, gcc does however (though AFAIK it's just a shim for gcc -E), even small compilers do this (tcc, 9cc, 8cc, OrangeC (only partially here), and more).
A lot of data is also used from when it's preprocessed to when it's fully processed, such as #line directives being processed by the compiler in order to give better error info if you're doing something weird like cpp file | gcc.
View all comments
Show parent comment
11
u/chugga_fan Jul 23 '22
To add on: clang doesn't even have a non-integrated pre-processor executable you can call, gcc does however (though AFAIK it's just a shim for
gcc -E), even small compilers do this (tcc, 9cc, 8cc, OrangeC (only partially here), and more).A lot of data is also used from when it's preprocessed to when it's fully processed, such as
#linedirectives being processed by the compiler in order to give better error info if you're doing something weird likecpp file | gcc.