Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

File Extensions

Input File Extensions

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

File Name (OS Agnostic)

File Name for Linux

File Name for Windows

Interpretation

Action

file.c

   

C source file

Passed to the compiler.

file.C

file.CC

file.cc

file.cpp

file.cxx

   

C++ source file

Passed to the compiler.

 

file.a

file.so

file.lib

Library file

Passed to the linker.

file.i

   

Preprocessed file

Passed to the compiler.

 

file.o

file.obj

Object file

Passed to the linker.

 

file.s

file.S

file.asm

Assembly file

Passed to the assembler.

Output File Extensions

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

File Name (OS Agnostic)

File Name for Linux

File Name for Windows

Description

file.i

   

Preprocessed file: Produced with the -E option.

 

file.o

file.obj

Object files:

  • Linux: Produced with the -c object. The -o option allows you to rename the output object file.
  • Windows: Produced with the -c object. The /Fo option allows you to rename the output object file.
 

file.s

file.asm

Assembly language file:

  • Linux: Produced with the -S option. The -s option allows you to rename the output assembly file.
  • Windows: Produced with the -S option. The /Fa option allows you to rename the output assembly file.
 

a.out

file.exe

Executable file: Produced by the default compilation.

  • Linux: The -o option allows you to rename the output executable file.
  • Windows: The /Fe option allows you to rename the output executable file.