Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ismail_Donmez
Beginner
105 Views

-save-temps is broken

[~]> 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.

0 Kudos
6 Replies
Kittur_G_Intel
Employee
105 Views

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/copt... should give you more info on the -save-temps option,

Regards,
Kittur

Ismail_Donmez
Beginner
105 Views

-P indeed works but -save-temps doesn't work which is still a regression for gcc compatibility, no?
Kittur_G_Intel
Employee
105 Views

Hi Ismail,

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.

Regards,
Kittur

Ismail_Donmez
Beginner
105 Views

Thanks a lot! -P already works fine as a workaround.
Kittur_G_Intel
Employee
105 Views

Thanks for your patience in using the workaround Ismail. I'll let you know when the release with the fix it out - appreciate much.

Regards,
Kittur

Kittur_G_Intel
Employee
105 Views

Hi Ismail, 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.... Regards, Kittur
Reply