RENESAS TOOL NEWS
R20TS0050EJ0100 Rev.1.00 Page 1 of 4
Jul. 01, 2016
[Released on the Web]
CcnvNC30 C Source Code Converter:
Tool for Assistance in Porting from the NC30 Compiler
for the M16C Series and R8C Family
to the CC-RL Compiler for the RL78 Family
Outline
The CcnvNC30 C source code converter will be released on the Web. This program converts files of C source code
created in a development environment with the NC30 compiler for M16C series and R8C family micr ocontrollers into
files of C source code for the CC-RL compiler for the RL78 family. We supply the product free of charge.
1. Outline of the Product
The CcnvNC30 is a C source code converter that converts the following types of files into C source code for the
CC-RL c ompile r for the RL78 family.
Applicable C source programs
CcnvNC30 accepts C source programs created in development environments with the following C compiler as
inputs.
- NC30 compiler for M16 C series and R8C family
The CcnvNC30 converter converts extended specifications in C source programs for the NC30 compiler into extended
specificatio ns for CC -RL. The CcnvNC30 converter then generates files of C source code for CC-RL.
This product supports the porting of C source files from the NC30 compiler to CC-RL. Since we do not guarantee the
correct operation of programs converted by CcnvNC30, b e sure to check the operation of the C source files after
conversion.
Device-dependent statements such as assembler instructions and those related to the memory map or SFRs cannot be
conve rted. For such statements, c heck the o pera t ion after manuall y changing them to suit the RL7 8 family product you
intend to use.
Refer to the User’s Manual for details of CcnvNC30. This information will be available from July 5.
https://www.renesas.com/search/keyword-search.html#genre=document&q=r20ut3685
CcnvNC30 C Source Converter User’s Manual
2. Features
CcnvNC30 is easy to run from the command line of Windows®.
Example of executio n:
Remarks:
CcnvNC30: Command to run CcnvNC
30
input.c: Name of input file
output.c: Name of generated file
R20TS0050EJ0100
Rev.1.00
Jul. 01, 2016
> CcnvNC30 input.c -o=output.c
RENESAS TOOL NEWS
R20TS0050EJ0100 Rev.1.00 Page 2 of 4
Jul. 01, 2016
Example of inpu t file: input.c
Example of ge ner a te d file: output.c
#pragma ADDRESS p0 00E0H /* Port P0 register */
char c;
void main(void)
{
/* CcnvNC30 C Source Converter V1.00.00.01 [07 Mar 2016] */
/*****************************************************************************
DISCLAIMER
This software is supplied by Renesas Electronics Corporation and is only
intended for use with Renesas products. No other uses are authorized. This
software is owned by Renesas Electronics Corporation and is protected under
all applicable laws, including copyright laws.
THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Renesas reserves the right, without notice, to make changes to this software
and to discontinue the availability of this software. By using this software,
you agree to the additional terms and conditions found by accessing the
following link:
http://www.renesas.com/disclaimer
Copyright (C) yyyy Renesas Electronics Corporation. All rights reserved.
******************************************************************************/
//[CcnvNC30] #pragma ADDRESS p0 00E0H /* Port P0 register */
#pragma address p0=0x00E0
char c;
void main(void)
{
c = p0;
}