2.1 Overview

CC-RH generates files executable on the target system from source programs described in C language or assembly language.

CC-RH consists of the following commands. A single driver (ccrh) controls all phases from compilation to linking.

ccrh: Compilation driver start command

asrh: Assembler start command

asrh: Optimizing linker start command

 

Processing of each command is shown below.

(1)

Compiler (ccrh)

Performs processing of preprocess directives, comment processing, and optimization for a C source program and then generates an assembly source file.

(2)

Assembler (asrh)

Converts an assembly source program into machine language instructions and then generates a relocatable object file.

(3)

Optimizing linker (rlink)

Links an object file and library file, and then generates an executable object file (load module file) on the target system.

Links object files and library files to generate object files (load module files) that are executable on the target system. It also handles the creation of ROM images for use in embedded applications, optimization during the linking of relocatable files, the creation and editing of library files, and conversion to Intel HEX files and Motorola S-record files.

Figure 2.1

Operation Flow of ccrh