Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

Can you differentiate the common register mode the 22- and 32- modes?

Latest Updated:09/04/2015

Question:

What is the difference between the common register mode (designating -Xreg mode=common option) and the 22- and 32-register modes?

Answer:

The method of checking the register mode when linking differs.
Object code produced in the common register mode is independent of the register mode, so it can be linked to object code produced in the 22- or 32-register mode. The linker checks for mixing of register modes in the way shown below. The combinations marked “X” lead to an error.

  22 32 Common
22 ×
32 ×
Common
Suitable Products
C Compiler Package for RH850 Family