You can configure your model to replace generic code with ARM® CMSIS code that is optimized for ARM Cortex®-M processors.
To measure the effects of optimization, you can perform Execution profiling before and after completing this procedure. For more information, see Replace Code for Embedded Targets.
To enable the code replacement libraries for ARM Cortex-M processors:
(Optional) To see the code replacement libraries that the code generation process will, enter:
Code Replacement Viewer opens and displays the code replacement libraries.
In the model, click the Model Configuration Parameters button.
In the Configuration Parameters dialog box, expand Code Generation, and select the Interface pane.
Set the Code replacement library parameter
ARM Cortex-M, and click OK.