Main Content

Optimize Code for ARM Cortex-A Processors

You can configure your model to replace generic code with Ne10 code that is optimized for ARM® Cortex®-A processors. The Ne10 code is based on the ARM Neon general-purpose SIMD engine.

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 code replacement libraries for ARM Cortex-A processors:

  1. To display the available code replacement libraries, launch the Code Replacement Viewer using the following code.

    crviewer('ARM Cortex-A')

    The Code Replacement Viewer displays the available code replacement libraries.

  2. Open a model configured for ARM Cortex-A processors. For information on configuring a model to support the ARM Cortex-A hardware board, see Run on Hardware Board - ARM Cortex-A Processors app.

  3. On the Hardware tab, click Hardware Settings.

  4. In the Configuration Parameters dialog box, expand Code Generation, and select the Interface pane.

  5. Set the Code replacement library parameter to ARM Cortex-A. Click OK.

    Use the Configuration Parameters dialog box to select the code replacement library.


Code replacement using Ne10 code in the ARM Cortex-A processors requires array dimensions be multiples of 4. Otherwise, code replacement optimizations do not get applied.