Understanding File Extensions

Input File Extensions

The Intel® C++ Compiler recognizes input files with the extensions listed in the following table:

File Name

Interpretation

Action

file.c

C source file

Passed to compiler

file.C
file.CC
file.cc
file.cpp
file.cxx

C++ source file

Passed to compiler

file.lib (Windows* OS)


file.a
file.so (Linux* OS and OS X*)

Library file

Passed to linker

file.i

Preprocessed file

Passed to stdout

file.obj (Windows* OS)


file.o (Linux* OS and OS X*)

Object file

Passed to linker

file.asm (Windows* OS)


file.s (Linux* OS and OS X*)

Assembly file

Passed to assembler

Output File Extensions

The Intel® C++ Compiler produces output files with the extensions listed in the following table:

File Name

Description

file.i

Preprocessed file -- produced with the P option.

file.obj file.o

Object file -- produced with the -c (Linux* OS and OS X*) or /Fo (Windows* OS) option.

file.asm file.s

Assembly language file -- produced with the S option.

file.exe a.out

Executable file -- produced by default compilation.

For more complete information about compiler optimizations, see our Optimization Notice.