View documentation for other releases
Learn more about Simulink Coder
• Getting Started
• User's Guide
• Bug Reports
Check Bug Reports for Latest Issues and Fixes
• Model Architecture and Design
• Modeling
• Configure Model Parameters
• Data, Function, and File Definition
• Data Representation
• Entry Point Functions and Scheduling
• File Packaging
• Code Generation
• Configuration
• Source Code Generation
• Report Generation
• Deployment
• Desktops
• Real-Time Systems
• External Code Integration
• Program Building, Interaction, and Debugging
• Performance
• Optimizations for Generated Code
• Defensive Programming
• Data Copy Reduction
• Execution Speed
• Memory Usage
• Verification
• Simulation and Code Comparison
• Customization
• Build Process Integration
• Run-Time Data Interface Extensions
• Custom Target Development
• Desktop IDEs and Desktop Targets
• Project and Build Configurations for Desktop Targets
• Verification Code Generated for Desktop Targets
• Working with Eclipse IDE
• Working with Linux Target
• Working with Microsoft Windows Target
• Target Language Compiler
• Introducing the Target Language Compiler
• Target Language Compiler Tutorials
• Code Generation Architecture
• model.rtw File and Authoring S-Functions and Data Objects
• Directives and Built-In Functions
• Debugging TLC Files
• Inlining S-Functions
• TLC Function Library Reference
• TLC Error Handling
• Reference
Product Limitations Summary
Glossary
• Configuration Parameters for Simulink Models
• Code Generation Pane: General
Code Generation: General Tab Overview
System target file
Language
Compiler optimization level
Custom compiler optimization flags
TLC options
Generate makefile
Make command
Template makefile
Ignore custom storage classes
Ignore test point signals
Select objective
Prioritized objectives
Set objectives
Set Objectives - Code Generation Advisor Dialog Box
Check model
Check model before generating code
Generate code only
Build/Generate code
• Code Generation Pane: Report
Code Generation: Report Tab Overview
Create code generation report
Open report automatically
Code-to-model
Model-to-code
Generate model Web view
Configure
Eliminated / virtual blocks
Traceable Simulink blocks
Traceable Stateflow objects
Traceable MATLAB functions
Static code metrics
Summarize which blocks triggered code replacements
• Code Generation Pane: Comments
Code Generation: Comments Tab Overview
Include comments
Simulink block / Stateflow object comments
MATLAB source code as comments
Show eliminated blocks
Verbose comments for SimulinkGlobal storage class
Simulink block descriptions
Simulink data object descriptions
Custom comments (MPT objects only)
Custom comments function
Stateflow object descriptions
Requirements in block comments
MATLAB function help text
• Code Generation Pane: Symbols
Code Generation: Symbols Tab Overview
Global variables
Global types
Field name of global types
Subsystem methods
Subsystem method arguments
Local temporary variables
Local block output variables
Constant macros
Minimum mangle length
Maximum identifier length
Generate scalar inlined parameter as
Signal naming
M-function
Parameter naming
#define naming
Use the same reserved names as Simulation Target
Reserved names
• Code Generation Pane: Custom Code
Code Generation: Custom Code Tab Overview
Use the same custom code settings as Simulation Target
Use local custom code settings (do not inherit from main model)
Source file
Header file
Initialize function
Terminate function
Include directories
Source files
Libraries
• Code Generation Pane: Debug
Code Generation: Debug Tab Overview
Verbose build
Retain .rtw file
Profile TLC
Start TLC debugger when generating code
Start TLC coverage when generating code
Enable TLC assertion
• Code Generation Pane: Interface
Code Generation: Interface Tab Overview
Code replacement library
Custom
Shared code placement
Support: floating-point numbers
Support: non-finite numbers
Support: complex numbers
Support: absolute time
Support: continuous time
Support: non-inlined S-functions
Support: variable-size signals
Multiword type definitions
Maximum word length
Classic call interface
Single output/update function
Terminate function required
Generate reusable code
Reusable code error diagnostic
Pass root-level I/O as
Block parameter visibility
Internal data visibility
Block parameter access
Internal data access
External I/O access
Generate destructor
Use operator new for referenced model object registration
Generate preprocessor conditionals
Suppress error status in real-time model data structure
Combine signal/state structures
Configure Model Functions
Configure C++ Encapsulation Interface
MAT-file logging
MAT-file variable name modifier
Interface
Generate C API for: signals
Generate C API for: parameters
Generate C API for: states
Generate C API for: root-level I/O
Transport layer
MEX-file arguments
Static memory allocation
Static memory buffer size
• Code Generation Pane: RSim Target
Code Generation: RSim Target Tab Overview
Enable RSim executable to load parameters from a MAT-file
Solver selection
Force storage classes to AUTO
• Code Generation Pane: S-Function Target
Code Generation S-Function Target Tab Overview
Create new model
Use value for tunable parameters
Include custom source code
• Code Generation Pane: Tornado Target
Code Generation: Tornado Target Tab Overview
Code Format
StethoScope
Download to VxWorks target
Base task priority
Task stack size
External mode
• Code Generation Pane: IDE Link
Overview
Build format
Build action
Overrun notification
Function name
Configuration
Compiler options string
Linker options string
System stack size (MAUs)
Profile real-time execution
Profile by
Number of profiling samples to collect
Maximum time allowed to build project (s)
Maximum time allowed to complete IDE operation (s)
Export IDE link handle to base workspace
IDE link handle name
Source file replacement
• Parameter Reference
Recommended Settings Summary
Parameter Command-Line Information Summary
• Model Advisor Checks
• Embedded Coder Checks
Checks Overview
Check solver for code generation
Identify questionable blocks within the specified system
Identify lookup table blocks that generate expensive out-of-range checking code
Check output types of logic blocks
Identify blocks using one-based indexing
Check the hardware implementation
Identify questionable software environment specifications
Identify questionable code instrumentation (data I/O)
Check for blocks that have constraints on tunable parameters
Check for blocks not recommended for MISRA-C:2004 compliance
Check configuration parameters for MISRA-C:2004 compliance
Check for model reference configuration mismatch
Identify blocks that generate expensive saturation and rounding code
Check sample times and tasking mode
Identify questionable subsystem settings
Identify questionable fixed-point operations
Check model configuration settings against code generation objectives
Check for efficiency optimization parameters
• Blocks
• Functions
Examples
• Release Notes
Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
By Category
Alphabetical List