7-8
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
7 liBrary
7.2.6 Compatibility with Coprocessor instructions
The S1C17 core supports coprocessor instructions.
When using a library compatible with coprocessor instructions, add the "emu_copro_process" function in Vector
Table No. 3 as shown below.
Example: Specifying vector tables (vector.c)
extern void emu_copro_process(void);
func *const vector[] = {
VECTOR(boot),
// 0
VECTOR(unalign),
// 1
VECTOR(dummy),
// 2
VECTOR(emu_copro_process)
// 3
};
Note that some models do not support coprocessor instructions.
When you create projects from the IDE, libraries compatible with coprocessor instructions can be specified only if
you selected a model that supports coprocessor instructions.
The libgccM.a library is compatible with multiplication coprocessor instructions.
The libgccMD.a library is compatible with multiplication, division, and remainder coprocessor instructions.
Table 7.2.5.1 lists functions using coprocessor instructions in libgccM.a.
Table 7.2.6.1 Functions using coprocessor instructions in libgccM.a.
function
functionality
interrupt disable segment
__mulhi3
16-bit multiplication
10 cycles
__mulsi3
32-bit multiplication
14 cycles
Table 7.2.5.2 lists functions using coprocessor instructions in libgccMD.a.
Table 7.2.6.2 Functions using coprocessor instructions in libgccMD.a.
function
functionality
interrupt disable segment
__mulhi3
16-bit multiplication
14 cycles
__mulsi3
32-bit multiplication
17 cycles
__divhi3
Signed 16-bit division
14 cycles
__modhi3
Signed 16-bit remainder calculation
14 cycles
__udivhi3
Unsigned 16-bit division
14 cycles
__umodhi3
Unsigned 16-bit remainder calculation
14 cycles
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 ...