Download H8 Edition - Renesas Electronics

Transcript
Application Notes
RX Family C/C++ Compiler Package
Application Notes: RX Migration Guide, H8 Edition
This document explains the items that need to be checked for migration from H8 family
source program, for C/C++ Compiler V1 for the RX family.
Table of contents
Introduction................................................................................................................................................ 2
1.
1.1
1.2
1.3
1.4
1.5
1.6
Options .............................................................................................................................................. 3
Specifying sign for the char type ....................................................................................................... 3
Specifying sign for bit field members ................................................................................................ 5
Specifying bit field member allocation............................................................................................... 6
Specifying endian .............................................................................................................................. 7
Specifying the size of double type variables ..................................................................................... 8
Specifying the size of int type variables ............................................................................................ 9
2.
2.1
2.2
2.3
2.4
2.5
2.6
Language specification ................................................................................................................... 10
Signs for char types......................................................................................................................... 10
Specifying sign for bit field members .............................................................................................. 11
Endian ............................................................................................................................................. 12
Size of double type variables .......................................................................................................... 13
Size of int type variables ................................................................................................................. 14
asm blocks ...................................................................................................................................... 15
3, Optimization option setting for migration from H8-family .................................................................... 16
Exsample: Sample source....................................................................................................................... 17
Web site and support <website and support> ......................................................................................... 18
REJ06J0077-0100 /Rev.1.00
2009.10
Page 1 of 18