Everything

 

-Xep


This option specifies how to handle the ep register.

[Specification format]

-Xep=mode

 

-

Interpretation when omitted

The ep register is treated as a register guaranteeing the value before and after the function call.

[Detailed description]

-

This option specifies how to handle the ep register.

-

The items that can be specified as mode are shown below.
An error will occur if any other item is specified.

fix

Fixes the value of the ep register for the entire project.

Specify this parameter when EP-relative sectionsNote are used.

callee

Treats the ep register as a register guaranteeing the value before and after the function call.

Specify this parameter when the -Omap or -Osmap option is specified.

Note

See "4.2.6.1 Allocation of function and data to section" for details about GP-relative sections.

 

-

An error will occur if mode is omitted.

-

The same specification must be made for all source files.

A different specification cannot be made for each source file.

If there are object files with different specifications, an error will occur at linkage.

[Example of use]

-

To fix the value of the ep register for the entire project, describe as:

>ccrh -Xep=fix -Xcommon=rh850 main.c