2

I want to see the intermediate code generated during the compilation of a C program. Using the -S flag, the object code is generated but is there anything to see the .i files, called as intermediate code.

1
  • have you tried $cat filename.i ?
    – VRU
    Jan 12, 2013 at 8:31

1 Answer 1

4

If this is gcc* you also need -save-temps after -S

gcc -S -save-temps file.cpp would make file.i


* By default, gcc is installed and linked to cc. If you install another C Compiler, cc will link to that.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .