Everything

 

-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 -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 a load module file name has been specified as file.

-

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:

>ccrh -osample.abs -Xcommon=rh850 main.c