User`s guide

Optimizing Embedded Code with Target Function Libraries
4 Press Ctrl+B to generate code from your model.
The Real-Time Workshop Repo rt window opens on your desktop. Fo r
more information about the report, refer to “Creating and Using a
Code Generation Report” in the Real-Time Workshop E mbedded Coder
documentation.
5 Use model-to-code highlighting to trace the code generated for each block
with target function library applied:
Right-click on a block in your model and s ele ct Real-Time
Workshop > Navigate to code from the context menu.
Select Navigate-to-code to highlight the code generated from the block
in the report window.
Inspect the code to see the target function operator in the generated code.
For more information, refer to “Tracing Code Generated Using Your
Target Function Library” in the Real-Time Workshop Embedded Coder
documen ta t ion in the online Help system.
If a target function library replacement did not occur as you expected, use the
techniques described in “Examining and Validating Function Replacement
Tables” in the Real-Time Wo rks ho p Embedde d Coder documentation to help
you d etermine why the build process did not use the function or o perator.
Using a File Differencing Scheme
You can also review the target function library induced changes in your
project by comparing projects that you generate both with and without the
processor-specic target function library.
1 Generate your project with the default C89/C90 ANSI target function
library. Use
Create Project, Archive Library,orBuild for the Build
action in the
Embedded IDE Link CC options.
2 Save the project to a new nam e— newp roje ct1.
3 Go back to the conguration parameters for your model, and select a target
function library appropriate for your processor.
4 Regenerate your project.
3-75