메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

Is there limit of use of resources for C/C++ compiler for RX family?

Latest Updated:10/29/2014

Question:

Does the use of existing software resources (for the M16C, R8C, H8, H8S, or H8SX family, etc.) impose any restriction in terms of using the C/C++ compiler package for the RX family ?

Answer:

There are some differences in language specifications of compilers.
The C/C++ compiler for the RX family includes options to absorb differences in language specifications.
Refer to the table below and use the required options.

Data type

  RX SH H8 R32C M32C M16C How to maintain compatibility
char type with no sign specification Un-signed Signed Signed Un-signed Un-signed Un-signed Specify the signed_char option.
int-type size 32 bits 32 bits 16 bits 32 bits 16 bits 16 bits 16 bits    Specify the int_to_short option.
double- or long double-type 32 bits 64 bits 64 bits 64 bits 32 bits 32 bits Specify the dbl_size=8 option.
bit-field type with no sign specification Un-signed Signed Signed Un-signed Un-signed Un-signed Specify the signed_bitfield option.

 

 

Alignment specifications

  RX SH H8 R32C M32C M16C How to maintain compatibility
Endian Little Big Big Little Little Little Specify the endian=big option.
Bit fields Aligned from the lowest-
order bit.
Aligned from the highest-
order bit.
 
Aligned from the highest-
order bit.
 
Aligned from the lowest-
order bit.
Aligned from the lowest-
order bit.
Aligned from the lowest-
order bit.
Specify the bit_order=left option.
Uninitialized variables Order of definition Order of declaration Order of declaration Order of definition Order of definition Order of definition Declare the data in the desired order of allocation.
const data with no initial values const section Uninitialized section Uninitialized section const section const section const section Use #pragma section directives to divide up the sections.

 

For further information, refer to the following application notes.

Suitable Products
CS+ (formerly CubeSuite+)
C/C++ Compiler Package for RX Family