Keil Logo Arm Logo

Filename suffixes recognized by the compiler

Filename suffixes recognized by the compiler

The compiler uses filename suffixes to identify the classes of file involved in compilation and in the link stage. The filename suffixes recognized by the compiler are described in Table 1.

Note

Explicitly specifying --c90, --c99, or --cpp overrides the effect of filename suffixes.

Table 1. Filename suffixes recognized by the compiler

SuffixDescriptionUsage notes

.c

C source file

Implies --c90

.CC or C++ source fileOn UNIX platforms, implies --cpp. On non-UNIX platforms, implies --c90.

.cpp

.c++

.cxx

.cc

.CC

C++ source file

Implies --cpp

The compiler uses the suffixes .cc and .CC to identify files for implicit inclusion.

.d

Dependency list file

.d is the default output filename suffix for files output using the --md option.

.h

C or C++ header file

-
.iC or C++ source fileA C or C++ file that has already been preprocessed, and is to be compiled without further preprocessing.
.iiC++ source fileA C++ file that has already been preprocessed, and is to be compiled without further preprocessing.

.lst

Error and warning list file

.lst is the default output filename suffix for files output using the --list option.

.a

.lib

.o

.obj

.so

ARM, Thumb, or mixed ARM and Thumb object file or library.

-

.pch

Precompiled header file

.pch is the default output filename suffix for files output using the --pch option.

.s

ARM, Thumb, or mixed ARM and Thumb assembly language source file.

For files in the input file list suffixed with .s, the compiler invokes the assembler, armasm, to assemble the file.

.s is the default output filename suffix for files output using either the option -S or --asm.

.SARM, Thumb, or mixed ARM and Thumb assembly language source file.

On UNIX platforms, for files in the input file list suffixed with .S, the compiler preprocesses the assembly source prior to passing that source to the assembler.

On non-UNIX platforms, .S is equivalent to .s. That is, preprocessing is not performed.

.sxARM, Thumb, or mixed ARM and Thumb assembly language source file.For files in the input file list suffixed with .sx, the compiler preprocesses the assembly source prior to passing that source to the assembler.

.txt

Text file

.txt is the default output filename suffix for files output using the -S or --asm option in combination with the --interleave option.


Copyright © 2007-2008, 2011-2012 ARM. All rights reserved.ARM DUI 0375D
Non-ConfidentialID062912

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.