R20UT3123EJ0106 Rev.1.06 Page 20 of 778
Dec 01, 2017
CC-RL 2. COMMAND REFERENCE
Remark In the ccrl command line, use the -asmopt option to specify an option dedicated to asrl; to specify
an option dedicated to rlink, use the -lnkopt option.
(b) Performing compilation and assembly by one command, and linking separately
C source file "file1.c" is compiled by ccrl, and then assembly source file "file1.asm" is generated.
Next, assembly source file "file1.asm" and "file2.asm" are assembled by asrl, and then object file "file1.obj" and
"file2.obj" are generated.
The assemble list files are output to the current folder.
Remark In the ccrl command line, use the -asmopt option to specify an option dedicated to asrl.
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) Performing compilation, assembly, and linking separately
C source file "file1.c" is compiled by ccrl, and then assembly source file "file1.asm" is generated.
Assembly source file "file1.asm" and "file2.asm" are assembled by asrl, and then object file "file1.obj" and
"file2.obj" are generated.
Assemble list files 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.
2.4.2 Subcommand file usage
A subcommand file is a file that options and file names specified for a ccrl, asrl, rlink command are described.
The command treats the contents of a subcommand file as if they were command-line arguments.
Use a subcommand file when the arguments will not fit on the command line, or when same options are specified
repeatedly each time the command is executed.
(1) Using a subcommand file for the compiler and assembler
(a) Cautions about description of a subcommand file
- The arguments to be specified can be coded over several lines.
However, you cannot start a new line within the name of the option specification or file.
- When the subcommand option is specified in a subcommand file, the same file name as the current subcom-
mand file cannot be specified in the subcommand option.
- The character code contents of a subcommand file cannot be specified by using the -character_set option.
If you use characters other than ASCII in the subcommand file, use the UTF-8 file with BOM.
- The following characters are treated as special characters.
Special characters written in a subcommand file are deleted from the parameter string passed to the ccrl com-
mand, and the ccrl command is executed with that string.
>ccrl file1.c file2.asm file3.obj -asmopt=-prn_path -lnkopt=-list -osample.abs -
cpu=S2 -dev=dr5f100pj.dvf
>ccrl -c file1.c file2.asm -asmopt=-prn_path -cpu=S2 -dev=dr5f100pj.dvf
>rlink file1.obj file2.obj file3.obj -output=sample.abs -list
>ccrl -S file1.c -cpu=S2 -dev=dr5f100pj.dvf
>asrl file1.asm -prn_path -cpu=S2 -dev=dr5f100pj.dvf
>asrl file2.asm -prn_path -cpu=S2 -dev=dr5f100pj.dvf
>rlink file1.obj file2.obj file3.obj -output=sample.abs -list