Ex3_main.c
...
main()
{
...
res=Prod(&array1[0],&array2[0]);
...
}
Compiler Support on StarCore
Ex3_prod.c
...
long Prod(short a1[], short a2[])
{
...
}
Figure 6. Files for the Local Versus Global Optimization Exercise
1. Open the two files and understand their functionality.
Local Optimization
2.Compile the two files:
ccsc100
3.Run the code: runsc100
The
Local Optimization (Default Mode) Cycle Count
Global Optimization
4.Compile the files using global optimization:
ccsc100
5.Run the code: runsc100
Global Optimization
Introduction to the SC140 Tools | 11 |