Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating intermediate .i files (preprocessed files) when compiling Ubuntu-8.04

I'm building ubuntu-8.04 with gcc 3.4 and I need to generate the .i files, which are the output of the gcc preprocessor. I have tried adding the --save-temps flag but this only generates the .i files for the top level directory, i.e. source, and does not seem to get passed recursively to the child directories. I also tried the -E flag, which is supposed to output preprocessed files and stop compilation, but this did not generate the files either.

I'm specifically looking to generate the .i files for the source in net/core.

Any help is appreciated. Thanks!!

like image 357
Sara Avatar asked Aug 31 '10 18:08

Sara


1 Answers

There is no support for bulk preprocessing.

For single file use "make net/core/foo.i"

For bulk, workaround is "make C=2 CHECK="cc -E"".

like image 114
adobriyan Avatar answered Oct 01 '22 00:10

adobriyan