S5U1C17001C ManUal
EPSOn
7-9
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
7 liBrary
7
Library
7.3 anSi library
7.3.1 Overview
The S1C17 Family C Compiler Package contains an ANSI library.
Each function in this library has ANSI-standard functionality. Certain ANSI library functions not supported by this
package are not included in the ANSI library.
The client assumes responsibility for function implementation and prototype declarations when using ANSI library
functions not listed in Section 7.3.2, “ANSI Library Function List.”
For some ANSI library functions not supported by this package, the header files include only prototype
declarations. In these cases, include the pertinent header file rather than declaring a prototype before implementing
the function.
See the table in Section 4.2.2, “Library Functions and Header Files” for a discussion of ANSI library functions with
prototype declarations only.
The
libc.a
ANSI library file is installed in separate directories (
\gnu17\lib\24bit
and
\gnu17\lib\
16bit
) for each memory model. A
long long
-type ANSI library is included in
libgcc.a (libgccM.a/
libgccMD.a)
.
The following header files which contain definitions of each function are installed in the
include
directory.
stdio.h stdlib.h time.h math.h errno.h float.h limits.h ctype.h
string.h stdarg.h setjmp.h smcvals.h stddef.h
registers used in the library
•
The registers
%r0
to
%r7
are used.
•
The registers
%r4
to
%r7
are protected by saving to the stack before execution of a function and by restoring
from the stack after completion of the function.
7.3.2 anSi library function list
The contents of the Reentrant column in the tables are as follows:
Reentrant:
Reentrant function
Nonreentrant: Non-reentrant function
Conditional: Non-reentrant function (This function refers to a global variable. It can be used as a reentrant function
if there is no change in the global variable, and your created
read()
and
write()
are reentrant functions.)
input/output functions
The table below lists the input/output functions included in
libc.a
.
Table 7.3.2.1 Input/output functions
Header file:
stdio.h
function
functionality
reentrant
notes
size_t
fread
(void *ptr, size_t size,
size_t count, FILE *stream);
Input array element from
stdin.
Conditional Refer to global variables
stdin
and
_iob
, and call
read
function.
size_t
fwrite
(void *ptr, size_t size,
size_t count, FILE *stream);
Output array element to
stdout.
Conditional Refer to global variables
stdout
,
stderr
and
_iob
, and call
write
function.
int
fgetc
(FILE *stream);
Input one character from
stdin.
Conditional Refer to global variables
stdin
and
_iob
, and call
read
function.
int
getc
(FILE *stream);
Input one character from
stdin.
Conditional Refer to global variables
stdin
and
iob
, and call
read
function.
int
getchar
( );
Input one character from
stdin.
Conditional Refer to global variables
stdin
and
_iob
, and call
read
function.
int
ungetc
(int c, FILE *stream);
Push one character back
to input buffer.
Nonreentrant Refer to global variables
stdin
,
std-
out
,
stderr
, and
_iob
, returned value
overwrite.
char *
fgets
(char *s, int n, FILE
*stream);
Input character string
from stdin.
Conditional Refer to global variables
stdin
and
_iob
, and call
read
function.
char *
gets
(char *s);
Input character string
from stdin.
Conditional Refer to global variables
stdin
and
_iob
, and call
read
function.
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...