Embedded Coder
Product Description
- Introduction and Key Features
- Configuring and Working with Targets
- Selecting Targets
- Defining and Controlling Custom Data
- Optimizing and Packaging Code
- Commenting, Tracing, and Documenting Code
- Executing and Verifying Code
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.
