Big Endian Method Usage Restrictions In Nec Development Tools - NEC V850E/MA1 User Manual

32-bit single-chip microcontroller
Hide thumbs Also See for V850E/MA1:
Table of Contents

Advertisement

31
0008H
0004H
0000H
31
000BH
0007H
0003H

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 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.
106
CHAPTER 4
BUS CONTROL FUNCTION
Figure 4-2. Big Endian Addresses Within Word
24 23
16 15
0009H
0005H
0001H
Figure 4-3. Little Endian Addresses Within Word
24 23
16 15
000AH
0006H
0002H
User's Manual U14359EJ4V0UM
8 7
000AH
000BH
0006H
0007H
0002H
0003H
8 7
0009H
0008H
0005H
0004H
0001H
0000H
Note
.
0
0

Advertisement

Table of Contents
loading

Table of Contents