![background image](http://html1.mh-extra.com/html/nec/v850e-ma1/v850e-ma1_user-manual_4538839106.webp)
CHAPTER 4 BUS CONTROL FUNCTION
106
User’s Manual U14359EJ4V0UM
Figure 4-2. Big Endian Addresses Within Word
0008H
0009H
000AH
000BH
0004H
0005H
0006H
0007H
0000H
0001H
0002H
0003H
31
24 23
16 15
8 7
0
Figure 4-3. Little Endian Addresses Within Word
000BH
000AH
0009H
0008H
0007H
0006H
0005H
0004H
0003H
0002H
0001H
0000H
31
24 23
16 15
8 7
0
4.5.4 Big endian method usage restrictions in NEC development tools
(1) When using a debugger (ID850)
The big endian method is supported only in the memory window display.
(2) When using a compiler (CA850)
(a) Restrictions in C language
(i)
There are restrictions for variables allocated to/located in the big endian space, as shown below.
•
union cannot be used.
•
bitfield cannot be used.
•
Access with cast (changing access size) cannot be used.
•
Variables with initial values cannot be used.
(ii) It is necessary to specify the following optimization inhibit options because optimization may cause a
change in the access size.
•
For global optimization part (opt850)… -Wo, -XTb
•
For optimization depending on model part (impr850)… -Wi, +arg_reg_opt=OFF, +stld_trans_opt=OFF
The specification of the optimization inhibit options shown above is not necessary, however, if the
access is not an access with cast or with masking/shifting
Note
.
Note
This is on the condition that a pattern that may cause the following optimization is not used.
However, because it is very difficult for users to check the patterns completely in cases such
as when several patterns are mixed (especially for optimization depending on model part), it
is recommended that the optimization inhibit options shown above be specified.