Embedded Coder

Selecting Targets

Embedded Coder uses configuration objects and system target files to translate your MATLAB code and Simulink models into production-quality source code and executables.

For a MATLAB configuration object, you specify one of the following output targets:

  • MEX-file
  • C/C++ static library
  • C/C++ executable

For a Simulink system target file, you specify the real-time environment on which your generated code will run. Embedded Coder includes target files for several ready-to-run configurations, and supports third-party and custom targets as well. Built-in targets include:

Embedded Real-Time Target — Generates ANSI/ISO C, C++, and encapsulated C++ code with floating-point and fixed-point data for efficient real-time execution on virtually any production processor

AUTOSAR Target — Generates C code and run-time interfaces that support development of AUTOSAR software components

Shared Library Target — Generates a shared library version of your code for host platform execution, either as a Windows® dynamic link library (.dll) file or a UNIX® shared object (.so) file

IDE Link Target — Generates code for compilation and deployment using a supported third-party integrated development environment (IDE) such as Texas Instruments’ Code Composer Studio

Defining Embedded Hardware Characteristics

For MATLAB or Simulink code generation, you select the deployment processor from a predefined list or use generic target settings. You can also extend the predefined list for your custom environment.

Simulink Model Explorer, which provides access to a predefined list or generic settings for specifying the microprocessor for code deployment.
Simulink Model Explorer, which provides access to a predefined list or generic settings for specifying the microprocessor for code deployment. Embedded Coder generates code for any microprocessor or DSP, including 8-bit, 16-bit, and 32-bit.
Next: Working with Custom Data

Try Embedded Coder

Get trial software

Modellazione di sistemi ferroviari in ambiente MATLAB & Simulink

View webinar