Compiler; Functions; Input/Output File; Input File - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

4 C Compiler
This chapter explains how to use the xgcc C compiler, and provides details on interfacing with the assembly source.
For information about the standard functions of the C compiler and the syntax of the C source programs, refer to the ANSI C
literature generally available on the market.

4.1 Functions

The xgcc C compiler compiles C source files to generate an assembly source file that includes S1C17 Core instruction set
mnemonics, extended instructions, and assembler directives. The xgcc is a gnu C compiler in conformity with an ANSI standard.
Since special syntax is not supported, the programs developed for other types of microcomputers can be transplanted easily to the
S1C17 Family.
Furthermore, since this C compiler has a powerful optimizing capability that allows it to generate a very compact code, it is best
suited to developing embedded applications.
This C compiler consists of three files: xgcc.exe, cpp.exe and cc1.exe.
The xgcc is based on the C compiler of Free Software Foundation, Inc. A GCC version 6 C compiler is provided in the gcc6 folder of
this package. A GCC version 4 C compiler is located in the gcc4 folder. Details about the license of this compiler are written in the text
files "COPYING3" and "COPYING", therefore, be sure to read this file before using the compiler.

4.2 Input/Output File

4.2.1

Input File

 C source file
File format:
Text file
File name:
<filename>.c
Description:
File in which the C source program is described.
4.2.2

Output Files

 Assembly source file
File format:
Text file
File name:
<filename>.s
An assembly source file to be input to the as assembler. This file is generated when the -S option is specified.
Description:
S5U1C17001C Manual
(Rev. 1.0)
C source file
File.c
C compiler
xgcc -c
Object
File.o
source file
ld linker
Figure 4.2.1 Flowchart
Seiko Epson Corporation
4 C Compiler
4-1

Advertisement

Table of Contents
loading

Table of Contents