Download CubeSuite Ver.1.40 Integrated Development Environment User`s
Transcript
CubeSuite Ver.1.40
CHAPTER 3 COMPILER LANGUAGE SPECIFICATIONS
Macro name
Definition
__CHAR_SIGNED__
Decimal constant 1 (defined if signed is specified by the -Xchar option and when the
-Xchar option is not specified).
__CHAR_UNSIGNED__
Decimal constant 1 (defined when unsigned is specified by the -Xchar option).
__DOUBLE_IS_64BITS__
Decimal constant 1.
__CPUmacro_
Decimal constant 1 of a macro indicating the target CPU. A character string indi-
__CPUmacro__
cated by "product type specification" in the device file with "_ _" prefixed and "_" or
"_ _"suffixed is defined.
Register mode macro
Decimal constant 1 of a macro indicating the target CPU.
Macro defined with register mode is as follows.
32 register mode:
__reg32__
26 register mode:
__reg26__
22 register mode:
__reg22__
Universal register mode: __reg_common__
__MULTI_CORE__
Decimal constant 1 (defined when specified by the -Xmulti option).
__MULTI_CMN__
Decimal constant 1 (defined when core specified by the -Xmulti option (n is the
__MULTI_PEn__
numerical value.)).
Note For the processing to be performed when the -Xansi option is specified, see "3.1.5 ANSI option".
3.1.4
C99 language function
This section describes the C99 language functions supported by the CX.
(1) Macros with variable numbers of arguments
The compiler supports C preprocessor macros with variable numbers of arguments.
#define pr (fmt, ...)
printf (fmt, __VA_ARGS__)
The notation above can be used to describe an arbitrary number of arguments.
pr ("%s%d\n", "aa", 1)
->
printf ("%s%d\n", "aa", 1)
pr ("%d\n", 2)
->
printf ("%d\n", 2)
(2) _Bool type
_Bool type is supported.
(3) Comment by //
Text from two slashes (//) until a newline character is a comment. If there is a backslash character (\) immediately
before the newline, then the next line is treated as a continuation of the current comment.
(4) Inline keyword (inline function)
Inline function is supported.
This can also be specified using a pragma directive, via the following format.
#pragma inline
function-name[, function-name, ...]
For the details of expansion specification, see "(9) Inline expansion".
R20UT0259EJ0100 Rev.1.00
Oct 01, 2010
Page 90 of 890
Related documents
CubeSuite+ V2.00.00 Integrated Development Environment User`s
CubeSuite+ V1.00.00 Integrated Development Environment User`s
CA850 Ver.3.20 C Compiler Package Link Directives UM
Digital Signal Processing with V850 and V850E Devices Application
RA78K0R Ver. 1.20 Assembler Package Language UM
QB-V850EMA3 In-Circuit Emulator UM
CA850 Ver. 3.20 C Compiler Package C Language UM
PM plus Ver. 5.20 UM - Renesas Electronics
Oscilloscope Mode (cont`d)
CA850 Ver. 3.20 C Compiler Package Operation UM
QB-V850ESIX2 In-Circuit Emulator UM
kcam 4 cnc control software user manual