Compiler Support on StarCore
StarCore C Compiler
C files
.c, .h
C Compiler
Front End
IR files
.obj
Global
Optimization
Cfiles
.c, .h
CCompiler Front End
IR files
.obj
Optimizer icode
Cfiles
.c, .h
CCompiler Front End
IR files
.obj
Assembler asmsc100
Object Library
Files, .elb
Assembler |
| Assembler | |
asmsc100 |
| asmsc100 | |
|
|
|
|
|
|
|
|
Linker
Figure 5. StarCore Global Optimization
Hands On
The benefit of Global Optimization is most apparent when several files containing cross references are used, as is often the case in any sizeable application. In this example, two files are used:
•the main file called Ex3_main.c
•a function file called Ex3_prod.c
The main file, Ex3_main.c, calls a routine defined in the function file Ex3_prod.c, as shown in
Figure 6.
10 | Introduction to the SC140 Tools |