s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 57

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
4.2 Grammar of C Source
The C Compiler gcc33 included in this package is the GNU C Compiler (ver. 2.7.2) under ANSI C standards.
Since everything except the asm function of this compiler conforms to standard specifications, make sure C
sources are created according to ANSI C standards. If you want information about the syntax, please refer to
ANSI C textbooks generally available on the market.
4.2.1 Data Type
The gcc33 supports all data types under ANSI C. The size of each data type (in bytes) and the effective range of
values that can be expressed are listed in Table 4.2.1.1.
The float and double types conform to the IEEE standard format.
4.2.2 Library Functions and Header Files
This package contains an ANSI standard library and an emulation library for calculating floating-point numbers
and the remainders of divided integral numbers.
The header files in the "include" directory contain library function declarations and macro definitions. When
using a library function, include the header file that contains its declaration by using the "#include" instruction.
The table below shows the relationship between the types of library files and the header files.
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
ANSI standard library
Emulation library
File name
File name
fp.lib
idiv.lib
io.lib
math.lib
string.lib
ctype.lib
tmpfile*, tmpnam*, remove*, fopen*, freopen, fclose*, setbuf*,
setvbuf*, fflush*, clearerr*, feof*, ferror*, perror, fseek*, fgetpos*,
fsetpos*, ftell*, rewind*, getchar, fgetc, getc, gets, fgets, fscanf,
scanf, sscanf, fread, putchar, fputc, putc, puts, fputs, ungetc,fprintf,
printf, sprintf, vfprintf, vprintf, vsprintf, fwrite
abort, exit, atexit*,getenv*, system*, malloc, calloc, realloc, free, atoi,
atol, atof, strtol, strtoul, strtod, abs, labs, div, ldiv, rand, srand,
bsearch, qsort
time, difftime*, clock*, mktime, localtime*, gmtime, asctime*, ctime*
acos, asin, atan, atan2, ceil, cos, cosh, exp, fabs, floor, fmod, frexp,
ldexp, log, log10, modf, pow, sin, sinh, sqrt, tan, tanh
memchr, memmove, strchr, strcspn, strncat, strpbrk, strstr,
memcmp, memset, strcmp, strerror, strncmp, strrchr, strtok,
memcpy, strcat, strcpy, strlen, strncpy, strspn
isalnum, iscntrl, isgraph, isprint, isspace, isxdigit, toupper, isalpha,
isdigit, islower, ispunct, isupper, tolower
va_start, va_arg, va_end
adddf3, subdf3, muldf3, divds3, negdf2, addds3, subds3, mulds3, divds3, negds2, fixunsdfsi,
fixdfsi, floatsidf, fixunssfsi, fixsfsi, floatsisf, truncdfsf2, extendsfdf2, fcmpd, fcmps
divsi3, udivsi3, modsi3, umodsi3
char
unsigned char
short
unsigned short
int
unsigned int
long
unsigned long
pointer
float
double
Data type
Table 4.2.2.1 List of library files and functions
Size
1
1
2
2
4
4
4
4
4
4
8
Functions/macros
Table 4.2.1.1 Data type and size
-128 to 127
0 to 255
-32768 to 32767
0 to 65535
-2147483648 to 2147483647
0 to 4294967295
-2147483648 to 2147483647
0 to 4294967295
0 to 4294967295
1.175e-38 to 3.403e+38 (normalized number)
2.225e-308 to 1.798e+308 (normalized number)
The functions marked with an asterisk (*) are dummy functions.
EPSON
Effective range of a number
Functions
stdio.h
stdlib.h
time.h
math.h, errno.h, float.h,
limits.h
string.h
ctype.h
stdarg.h
Corresponding header file
CHAPTER 4: SOURCE FILES
41

Related parts for s5u1c33000c