File Extensions

Input File Extensions

The Intel® oneAPI DPC++/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*)


file.a
file.so (Linux*)

Library file

Passed to linker

file.i

Preprocessed file

Passed to compiler

file.obj (Windows)


file.o (Linux)

Object file

Passed to linker

file.asm (Windows)


file.s (Linux)

file.S (Linux)

Assembly file

Passed to assembler

Output File Extensions

The Intel® oneAPI DPC++/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.o (Linux)

file.obj (Windows)

Object file: Produced with the -c (Linux and Windows) object. The /Fo (Windows) or -o (Linux) option allows you to rename the output object file.

file.s (Linux)

file.asm (Windows)

Assembly language file: Produced with the -S option. The /Fa (Windows) or -s (Linux) option allows you to rename the output assembly file.

a.out (Linux)

file.exe (Windows)

Executable file: Produced by the default compilation.

The /Fe (Windows) or -o (Linux) option allows you to rename the output executable file.

See Also