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

I am creating ubuntu-8.04 with gcc 3.4 and I need to generate .i files which are the output of the gcc preprocessor. I tried adding the -save-temps flag, but it only generates .i files for the top-level directory, i.e. the source, and does not seem to be passed recursively to child directories. I also tried the -E flag, which should output pre-processed files and stop compilation, but this also did not create the files.

I am specifically looking to generate .i files for source in net / core.

Any help is appreciated. Thanks!!

+6
compilation linux-kernel
source share
2 answers

Support for bulk processing is not supported.

To use a single file, use the command make net / core / foo.i

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

+5
source share

I know this is an old post, but it may be useful; it works for me: gcc -E filename.c -o outputfile.i

0
source share

All Articles