How do I run the GCC preprocessor to get the code after macros like #define are expanded? August 31, 2023 by Tarik Yes. Use the -E option: gcc -E foo.c