-o


This option specifies the output file name.

[Specification format]

-ofile

 

-

Interpretation when omitted

The output file name differs depending on the specificated option.

The file is output to the current folder when the output folder is not specified.

-

When the -P option is specified

The output file name will be the input file name with the extension replaced by ".i".

-

When the -S option is specified

The output assembly source file name will be the source file name with the extension replaced by ".asm".

-

When the -c option is specified

The output object file name will be the source file name with the extension replaced by ".obj".

-

Other than above

The output load module file name will be the first input file name with the extension replaced by ".abs".

[Detailed description]

-

This option specifies the output file name as file.

-

If file already exists, it will be overwritten.

-

This option is valid when processing is interrupted by specifying the -P, -S, or -c option.

-

If this option is specified with the -P option

It is assumed that is the name of the file containing the results of preprocessing performed on the input file has been specified as file.

-

If this option is specified with the -S option

It is assumed that an assembly source file name has been specified as file.

-

If this option is specified with the -c option

It is assumed that an object file name has been specified as file.

-

Other than above

It is assumed that the output file name to be set in the -output option for the optimizing linker is specified as file. When file has no extension, the output file name depends on the -form option for the optimizing linker.

See the description of "Link options" for detail.

-

An error will occur if two or more files are output.

-

An error will occur if file is omitted.

[Example of use]

-

To output the load module file with "sample.abs" as the file name, describe as:

>ccrl -o sample.abs -cpu=S2 -dev=dr5f100pj.dvf main.c