User`s guide
Optimizing Embedded Code with Target Function Libraries
With the target function library s elected, your generate d code us es the specific
functions in the library for your processor.
To stop using a proce ssor-specific target function library, open the
Interface
pane in the model configuration 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 profiling capability to examine the results of
applying the process or-s pecific library functions and operators to your
generated code. After you select a processor-specific targ et function libra ry,
use the real-time execution profiling capability to examine the change in
program execution time.
Use the following process to evaluate the effects of applying a processor-specific
target function library when you generate code:
1 Enable real-time profiling in your model. Refer to “Real-Time Execution
Profiling” 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 Profile the code, and save the report.
4 Rebuild your project using a proces sor-spe ci fic target function library
instead of the
C89/C90 ANSI library.
5 Profile the code, and save the second report.
6 Compare the profile report from running your application with the
processor-specific library selected to the profile results w ith the ANSI
library selected in the first 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