Epson S5U1C17001C Manual page 12

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

Advertisement

Contents
4 C Compiler ............................................................................................................................................... 4-1
4.1
Functions .............................................................................................................................................. 4-1
4.2
Input/Output File ................................................................................................................................... 4-1
4.2.1 Input File ............................................................................................................................... 4-1
4.2.2 Output Files .......................................................................................................................... 4-1
4.3
Starting Method .................................................................................................................................... 4-2
4.3.1 Startup Format ...................................................................................................................... 4-2
4.3.2 Command-line Options ......................................................................................................... 4-2
4.4
Compiler Output ................................................................................................................................... 4-8
4.4.1 Output Contents .................................................................................................................... 4-8
4.4.2 Data Representation ............................................................................................................. 4-9
4.4.3 Method of Using Registers .................................................................................................. 4-12
4.4.4 Function Call ....................................................................................................................... 4-13
4.4.5 Stack Frame ....................................................................................................................... 4-14
4.4.6 Grammar of C Source ......................................................................................................... 4-15
4.4.7 Compiler Implementation Definition .................................................................................... 4-15
4.5
Filter Function for Shift JIS Code ........................................................................................................ 4-16
4.6
Functions of xgcc and Usage Precautions.......................................................................................... 4-17
5 Library ...................................................................................................................................................... 5-1
5.1
Library Overview ................................................................................................................................... 5-1
5.1.1 Library Files .......................................................................................................................... 5-1
5.1.2 Precautions to Be Taken When Adding a Library ................................................................. 5-2
5.2
Startup Processing Library .................................................................................................................... 5-3
5.2.1 Overview ............................................................................................................................... 5-3
5.2.2 Vector Tables ........................................................................................................................ 5-3
5.2.3 Stack Pointer Initial Values ................................................................................................... 5-3
5.2.4 Startup Processing................................................................................................................ 5-4
5.3
Emulation Library .................................................................................................................................. 5-5
5.3.1 Overview ............................................................................................................................... 5-5
5.3.2 Floating-point Calculation Functions ..................................................................................... 5-6
5.3.3 Floating-point Number Processing Implementation Definition .............................................. 5-8
5.3.4 Integral Calculation Functions ............................................................................................... 5-9
5.3.5 long long Type Calculation Functions ............................................................................ 5-10
5.3.6 Compatibility with Coprocessor Instructions ....................................................................... 5-11
5.4
ANSI Library ....................................................................................................................................... 5-12
5.4.1 Overview ............................................................................................................................. 5-12
5.4.2 ANSI Library Function List .................................................................................................. 5-12
5.4.3 Declaring and Initializing Global Variables .......................................................................... 5-18
5.4.4 Lower-level Functions ......................................................................................................... 5-19
6 Assembler ................................................................................................................................................ 6-1
6.1
Functions .............................................................................................................................................. 6-1
6.2
Input/Output Files ................................................................................................................................. 6-1
6.2.1 Input File ............................................................................................................................... 6-2
6.2.2 Output File ............................................................................................................................ 6-2
6.3
Starting Method .................................................................................................................................... 6-3
6.3.1 Startup Format ...................................................................................................................... 6-3
6.3.2 Command-line Options ......................................................................................................... 6-3
6.4
Scope ................................................................................................................................................... 6-4
iv
Seiko Epson Corporation
S5U1C17001C Manual
(Rev. 1.0)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5U1C17001C and is the answer not in the manual?

Table of Contents