GCC commandline option -save-temps

-save-temps Store the usual “temporary” intermediate files permanently; place them in the current directory and name them based on the source file. Thus, compiling `foo.c’ with `-c -save-temps’ would produce files `foo.i’ and `foo.s’, as well as `foo.o’. This creates a preprocessed `foo.i’ output file even though the compiler now normally uses an integrated preprocessor. …

GCC COMMANDLINE OPTIONS PART 3

commandline session $cat main.c #include<stdio.h> int main(void) { int i; printf(“n The Geek Stuff [%d]n”, i); return 0; } $gcc -C main.c $ls -l main main main.c main.i main.s $ls -l main. main.c main.i main.s $ls -l main. ls: cannot access main.: No such file or directory $rm main $rm a.out $gcc -C main.c $ls …