User`s guide

Optimizing Embedded Code with Target Function Libraries
With the target function library s elected, your generate d code us es the specic
functions in the library for your processor.
To stop using a proce ssor-specic target function library, open the
Interface
pane in the model conguration parameters. Then, select the C89/C90
(ANSI)
library from the Target function library list.
Process of Determining Optimization Effects Using
Real-Time Profiling Capability
You can use the real-time proling capability to examine the results of
applying the process or-s pecic library functions and operators to your
generated code. After you select a processor-specic targ et function libra ry,
use the real-time execution proling capability to examine the change in
program execution time.
Use the following process to evaluate the effects of applying a processor-specic
target function library when you generate code:
1 Enable real-time proling in your model. Refer to “Real-Time Execution
Proling” on page 4-11 in the online Help system.
2 Generate code for your project using the default target function library
C89/C90 ANSI.
3 Prole the code, and save the report.
4 Rebuild your project using a proces sor-spe ci c target function library
instead of the
C89/C90 ANSI library.
5 Prole the code, and save the second report.
6 Compare the prole report from running your application with the
processor-specic library selected to the prole results w ith the ANSI
library selected in the rst report.
For a demonstration of verifying the code optimization, refer to the Embedded
IDE Link CC demos. Review the demo Optimizing Embedded Code via Target
Function Library.
3-73