2.2 I/O Files

The I/O files of the CcnvCA78K0 are shown below.

Table 2.1

I/O Files

File Type

I/O

Extension

Description

C source file

Header file

I/O

(Input)

.c

.h

 

(Output)

free

A C source file or C header file for the CA78K0 is input and the converted C source file or C header file for the CC-RL is output. The version information of the CcnvCA78K0 is inserted at the beginning of the converted file as a comment and the former description of the converted code is left as a comment.

 

The extension of the input file is fixed. If a file with another extension is specified, the input file is directly output without its contents being converted.

 

The converted file can be specified with the -o option or -l option.

 

If a converted file is re-input, the file is directly output without being converted, and the fact that the file was already converted is notified.

List file

I

free

Text file which includes the input file names and output file names.

Specifying the list file with the -l option enables multiple source files to be converted collectively. For the format of the list file, see "-l option".

Conversion result file

O

free

Messages in the conversion result that is output to the standard output file can be output to a file specified by the -r option.

For details on the messages, see "MESSAGES".

 

Examples of an input file and an output file are shown below. For details on conversion specifications, see "CONVERSION SPECIFICATIONS".

 

(Input file: input.c)

#pragma sfr
char c;
void main(void)
{
    c = P0;
}

 

(Output file: output.c)

/* CA78K0 C Source Converter Vx.xx.xx.xx [dd Mmm yyyy] */
/*****************************************************************************
 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.
******************************************************************************/
//[CcnvCA78K0]
#include "iodefine.h"
 
//[CcnvCA78K0] #pragma sfr
char c;
void main(void)
{
    c = P0;
}