2.2. File naming conventions

The ARM 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 2.1.

Table 2.1. Filename suffixes recognized by the ARM compiler

SuffixDescriptionUsage notes

.c

C source file

Implies --c90

.ac

C source file

Implies --c90 --arm

.tc

C source file

Implies --c90 --thumb

.cpp

.c++

.cxx

.cc

.CC

C++ source file

Implies --cpp

The compiler uses the suffixes .cc and .CC to identify files for implicit inclusion. See Implicit inclusion in the Compiler Reference Guide for more information.

.acpp

C++ source file

Implies --cpp --arm

.tcpp

C++ source file

Implies --cpp --thumb

.d

Dependency list file

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

.h

C or C++ header file

--cpp --arm

.o

.obj

ARM object file in ELF format.

 

.s

ARM or 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.

.lst

Error and warning list file

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

.pch

Precompiled header file

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

.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.


Note

Instruction set switching based on the .ac, .acpp, .tc, and .tcpp file name suffixes is deprecated and will be removed in the next release.

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0205H
Non-Confidential