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.

It also performs ROMization, performs optimization during linking of relocatable files, creates and edits library files, and converts to Intel HEX files and Motorola S-record files.

Figure 2.1

Operation Flow of ccrh