File Types and Extensions - 2021.2 English

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

Document ID
UG1400
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 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