[~]> icc -vicc version 12.1.0 (gcc version 4.6.0 compatibility)[~]> icc -save-temps -c t.c[~]>should produce t.i and t.s files but both are missing. Looks like a regression.
Hi,The -save-temps option is used to save the intermediate files during compilation. The .s file is saved only if you use the -use-asm option. If you want to generate the preprocessed .i file, you'll have to use the -P compile option. The link http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/compiler_c/copts/common_options/option_save_temps.htm should give you more info on the -save-temps option,
-P indeed works but -save-temps doesn't work which is still a regression for gcc compatibility, no?
I agree. The -save-temps option with icc is not 1:1 with gcc behavior as it won't save the .i or the .s file with that option alone with icc. Well, an issue has been filed with the developers on this and I'll update you as soon as the release with the fix is out. Appreciate your patience through this.
Thanks a lot! -P already works fine as a workaround.
Thanks for your patience in using the workaround Ismail. I'll let you know when the release with the fix it out - appreciate much.
Just letting you know that this issue has been fixed in the latest 2013 release of the product that you can download from the registration center....