You can launch the ccrh command (the compilation driver) to perform compilation, assembly, linking, and other actions.
The assembler (asrh) and optimizing linker (rlink) can also start by itself.
Enter the following on the command line.
...: Pattern in preceding [ ] can be repeated
{ }: Select from items delimited by the pipe symbol ("|")
[, ...]: The preceding pattern can be repeated by delimiting each with a comma.
[: ...]: The preceding pattern can be repeated by delimiting each with a colon.
string := A: string is replaced with A.
string := A | B | C: string is replaced with any one of A, B, or C.
The following points should be noted when entering a command.
The specification formats of options depend on the command that is used. |
A file name supported by Windows can be specified. |
Uppercase characters and lowercase characters are not distinguished for the alphabet of a file name. |
Two or more files can be specified as input. |
The examples of operations on the command line are shown below.
See "2.5 Option" for details about each option. |
C source file "file1.c" is compiled by ccrh, and then assembly source file "file1.asm" is generated.
Next, assembly source file "file1.asm" and "file2.asm" are assembled by asrh, and then object file "file1.obj" and "file2.obj" are generated.
Assemble list file "sample.prn" are also output.
Finally, object file "file1.obj", "file2.obj", and "file3.obj" are linked by rlink, and then link map file "sample.map" and load module file "sample.abs" are generated.
>ccrh file1.c file2.asm file3.obj -Xasm_option=-Xprn_path=sample.prn -Xlk_option=-list -osample.abs -Xcommon=rh850 |
In the ccrh command line, use the -Xasm_option option to specify an option dedicated to asrh; to specify an option dedicated to rlink, use the -Xlk_option option. |
C source file "file1.c" is compiled by ccrh, and then assembly source file "file1.asm" is generated.
Next, assembly source file "file1.asm" and "file2.asm" are assembled by asrh, and then object file "file1.obj" and "file2.obj" are generated.
Assemble list file "sample.prn" are also output.
Object file "file1.obj", "file2.obj", and "file3.obj" are linked by rlink, and then link map file "sample.map" and load module file "sample.abs" are generated.
C source file "file1.c" is compiled by ccrh, and then assembly source file "file1.asm" is generated.
Assembly source file "file1.asm" and "file2.asm" are assembled by asrh, and then object file "file1.obj" and "file2.obj" are generated.
Assemble list file "sample.prn" are also output.
Object file "file1.obj", "file2.obj", and "file3.obj" are linked by rlink, and then link map file "sample.map" and load module file "sample.abs" are generated.