Download CubeSuite+ V1.03.00 Integrated Development Environment User`s

Transcript
CubeSuite+ V1.03.00
B.3.4
APPENDIX B COMMAND REFERENCE
Conversion specification
This section describes details of conversions in C source files and assembler source files.
(1) C source file
(a) Internal expression of data
In CA850, the double type is 32 bits, the same as the float type, but in CX a double is 64 bits.
In CA850 source, type declarations of "double" are converted to "float".
CA850 source
double
After conversion for CX
float
(b) Device specification
Although you can specify devices in C source in CA850, you cannot do so in CX. In CX, device-specification
directives are deleted.
To specify a device in CX, you must specify the -C option.
CA850 source
#pragma cpu device-nane
After conversion for CX
Deleted
(c) Data section allocations
The data section-specification format for CA850 is shown below.
#pragma section section-type ["section-name"] begin
Variable declarations/definitions
#pragma section section-type ["section-name"] end
The data section-specification format for CX is shown below.
#pragma section attribute-specification-char ["section-name"]
Variable declarations/definitions
Section types and attribute specification characters are the same, and only the format differs, so they are
converted to CX format. Since the end specification line is not needed, it is deleted.
CA850 source
#pragma section section-type "section-name" begin
#pragma section section-type "section-name" end
After conversion for CX
#pragma section attribute-specification-char "section-name"
#pragma section default
(d) Access to peripheral function registers using register names
<1> How to access
The "#pragma ioreg" format for using register names is the same in CA850 and CX, so no conversion is
performed.
R20UT2142EJ0100 Rev.1.00
Sep 01, 2012
Page 605 of 620