4 array types, 5 function types, 6 reference types – Renesas Emulator Debugger M16C PC4701 User Manual

Page 274: 7 bit field types

Advertising
background image


10.2.4 Array Types

When the result of calculation is an array type other than a char [ ] type, the starting address is
displayed in hex as follows:

(signed int [10]) z = 0x1234(all Radices)_

When the result of calculation is a char [ ] type, it is displayed as follows:

(unsigned char [10]) str = 0x1234 "Japan"(all Radices)


If the string contains a non-printing code prior to the code to show the end of the string (0), it is
displayed up to the non-printing character and the closing quote mark is not displayed.

(unsigned char [10]) str = 0x1234 "Jap(all Radices)

Also if the string contains more than 80 characters, the closing quote mark is not displayed. When the
C/C++ expression is an array type as same as pointer type, a '+' is display to the left of the type name.
You can see the elements of the array by using this indicating. (for the details, refer"10.2.3 Pointer
Types") Wh
en the number of the array elements is more than 100, the following dialog box open.
Specify the number of the elements in the dialog box.


The elements from the index specified in "Start" to the index specified in "End" are displayed. If you
specify the value more than the max index of the array, the value is regarded as max index of the
array. When you click the "Cancel" button, the elements are not displayed.

10.2.5 Function Types

When the result of calculation is a function type, the starting address is displayed in hex as
follows:

(void()) main = 0xF000(all Radices)

10.2.6 Reference Types

When the result of calculation is a reference type, the reference address is displayed in hex as
follows:

(signed int &) ref = 0xD038(all Radices)

10.2.7 Bit Field Types

When the result of calculation is a bit field type, it is displayed as follows:

(unsigned int :13) s.f = 8191(when Radix is in initial state)
(unsigned int :13) s.f = 0x1FFF(when Radix is hex)
(unsigned int :13) s.f = 1111111111111B(when Radix is binary)

260

Advertising