File Types and Extensions - 2022.1 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 English

The GNU compiler determines the type of your file from the file extension. The following table lists the valid extensions and the corresponding file types. The GCC wrapper calls the appropriate lower level tools by recognizing these file types.

Table 1. File Extensions
Extension File Type (Dialect)
.c C file
.C C++ file
.cxx C++ file
.cpp C++ file
.c++ C++ file
.cc C++ file
.S Assembly file, but might have preprocessor directives
.s Assembly file with no preprocessor directives