Download 78K0 Build - Renesas Electronics

Transcript
CubeSuite+ Ver.1.00.00
APPENDIX B COMMAND REFERENCE
- To specify the uPD78F0511_44 as the target device in the C source file, describe as:
#pragma pc ( F051144 )
#define TRUE
1
#define FALSE
0
#define SIZE
200
char
mark [ SIZE + 1 ] ;
void main ( void ) {
int
i , prime , k , count ;
:
}
Therefore, the target device specification can be omitted from the command line.
C:\>cc78k0 prime.c
- Specify different devices in the C source file (prime.c) and the command line, and then start up the C compiler.
To specify the uPD78F0511_44 as the target device in the C source file (prime.c), describe as:
#pragma pc ( F051144 )
#define TRUE
1
#define FALSE
0
#define SIZE
200
char
mark [ SIZE + 1 ] ;
void main ( void ) {
int
i , prime , k , count ;
:
}
Next, specify the uPD78F0514 as the target device in the command line, and then start up the C compiler.
C:\>cc78k0 -c014 prime.c
The target device specification in the command line takes precedence and compilation is executed as follows.
R20UT0555EJ0100 Rev.1.00
Apr 01, 2011
Page 331 of 570