Everything

 

-Xwhole_program


This option performs optimization assuming that the files to be compiled comprise the entire program.

[Specification format]

-Xwhole_program

 

-

Interpretation when omitted

It is not assumed that the files to be compiled comprise the entire program.

[Detailed description]

-

This option performs optimization assuming that the files to be compiled comprise the entire program.

-

The compilation is performed assuming that the following conditions are met. Operation is not guaranteed if these conditions are not met.

-

The values and addresses of extern variables defined in the files to be compiled will not be modified or referenced from outside those files.

-

Even if a file to be compiled calls a function defined outside the files to be compiled, the called function will never call a function in the files to be compiled.

-

If this option is specified, it is assumed that the -Xintermodule option is specified.
If two or more C source files are input, it is assumed that the -Xmerge_files option is specified.

[Example of use]

-

To perform optimization assuming that the files to be compiled comprise the entire program, describe as:

>ccrh -Xwhole_program -Xcommon=rh850 main.c