S5U1C17001C ManUal
EPSOn
4-15
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
4 SOUrCE filES
4
SrcFiles
(7) Be sure to include the prototype declaration or the extern declaration of the functions.
If there is no prototype or extern declaration and if a function without its definition part in an earlier part of the
same file is called, the type assumed in the file calling the function may differ from the function type actually
called, resulting in a potential malfunction. Even so, the function will compile without errors.
However, a warning is generated if the definition part of the called function is present in the same file. If the
definition part of the called function is located in another file, no warning is generated unless the -Wall option
is attached.
Since the return value is implicitly assumed to be of the int type, the correct value will not be returned if the
return value has a data type larger than int.
Example:
long l_Val=0x12345678,l_Val_2;
int main()
{
l_Val_2 = sub();
//
l_Val_2 is substituted with 0x5678.
return 0;
}
long sub()
{
long l_wk;
l_wk = l_Val;
return l_wk;
}
(8) Do not use a pointer other than “char” to perform a read/write operations to an odd-number memory.
Failure to observe this warning will result in an address error exception.
Example:
int *ip_Pt;
int sub()
{
ip_Pt = (int *)0x3;
(*ip_Pt) = 0x2;
return 0;
// Address error exception occurs here.
}
(9) Due to the specifications of the C language, note that processing an undefined action can result in different
calculation results due to differences in optimization options (-O0/-O/O3) and local/external variables.
Undefined processing includes the following cases:
・
When overflow is occurring during conversion from floating decimal to integer
・
When shift calculation is performed with a negative value or a value equal to or greater than the bit length of
the calculation target after a type promotion.
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...