Everything
2.2 Input/Output Files

The following shows the files input to and output from the RX family C/C++ compiler.

Table 2.1

Input/Output Files for the RX Family C/C++ Compiler

File Type

Extension

I/O

Description

C source program file

.c

Input

A source file written in C99 language.

This file is created by the user.

C++ source program file

.cpp, .cp, and .cc

Input

A source file written in C++ language.

This file is created by the user.

Include file

Optional

Input

A file referenced by the source file and written in C, C99, C++, or assembly language.

This file is created by the user.

Preprocessor expansion file for the C program

.p

Output

A file output as a result of preprocessing applied to an input C-language or the C99-language source program.

An ASCII image file.

This is output when the -output=prep option is specified.

Preprocessor expansion file for the C++ program

.pp

Output

A file output as a result of preprocessing applied to an input C++-language source program.

An ASCII image file.

This is output when the -output=prep option is specified.

Assembly-source program file

.src

Output

An assembly-language file generated from a C, C99, or C++ source file through compilation.

.src

Input

A source file written in assembly language.

List file for the assembly program

.lst

Output

A list file containing the assembly result information.

This is output when the -listfile option is specified.

The output contents are selected with the -show option.

Relocatable object program file

.obj

Output

An ELF-format file that contains the machine-language information, the relocation information about the allocation addresses of machine-language instructions, and symbol information.

Absolute load module file

.abs

Output

An ELF-format file for the object code generated as a result of linkage.

This is an input file when a hex file is output.

Linkage list file

.map

Output

A list file containing the linkage result information.

This is output when the -list option is specified.

The output contents are selected with the -show option.

Library file

.lib

Output

A file where multiple object module files are registered.

Library list file

.lbp

Output

A list file containing the result information of generation of the library.

This is output when the -list option is specified.

The output contents are selected with the -show option.

Library backup file

.lbk

Output

File type for saving the contents of original library files before they are overwritten by the library generator.

Hex file (Motorola S-format file)

.mot

Output

A Motorola S-format file in the hex format converted from the load module file.

Hex file (Intel (expansion) hex format file)

.hex

Output

An Intel (expansion) file in the hex format converted from the load module file.

Hex file (binary format file)

.bin

Output

A binary file in the hex format converted from the load module file.

Stack information file

.sni

Output

A stack information file.

This is output when the -stack option is specified.

Debugging information file

.dbg

Output

A debugging information file.

This is output when the -sdebug option is specified.

Object file including a definition specified with a file having extension td

.rti

Output

An object file including a definition specified with a file having extension td.

Calling information file

.cal

Output

A calling information file.

This is output by CallWalker.

External symbol assignment information file

.bls

Output

An external symbol assignment information file.

This is output at linkage when the -map option is specified.

.bls

Input

An external symbol assignment information file.

This is specified as an input file for the -map option at compilation.

Jump table file (assembly language)

.jmp

Output

An assembler source file for the jump table that branches the external definition symbol.

This is output when the -jump_entries_for_pic option is specified.

Symbol address file (assembly language)

.fsy

Output

An assembler source file that describes the external definition symbol in an assembler directive.

This is output when the -fsymbol option is specified.

C++ language function support file

.td, .ti, .pi, and .ii

Output

An information file that supports the C++ language function.

Tool usage information file

.ud

.udm

Output

File which is output for collecting tool usage information