Everything

 

-Xmerge_files


This option merges two or more C source files and compiles them.

[Specification format]

-Xmerge_files

 

-

Interpretation when omitted

Compilation is performed at the input-file level, without merging.

[Detailed description]

-

This option merges two or more C source files and compiles them. And then it outputs one file.

-

If the -o option is specified, then the specified file name is used for the output file. If the -o option is not specified, then the file name is in accordance with the interpretation of the -o option being omitted for the initially specified C source file.

-

If one C source file is input and if this option is specified together with the -P option, this option will be invalid.

-

If this option is specified at the same time as the -S or -c option, then for the 2nd and subsequent C source files that are specified, an empty file is output in accordance with the interpretation that the -o option was omitted.

-

If this option is specified at the same time with the -Oinline option, inline expansion is performed between files.

-

Operation is not guaranteed if an object file is generated with this option specified and any of link options -delete, -rename, and -replace is specified at linkage of the object file.

[Example of use]

-

To merge main.c and sub.c, compile them, and output one file, describe as:

>ccrh -Xmerge_files -Xwhole_program -Xcommon=rh850 -Osize main.c sub.c