Quellcodegenerierung
Generieren und Verifizieren von Quellcodemodulen für die Funktionsbereitstellung und -Integration
Erlernen Sie, wie Sie die Quellcodegenerierung initiieren und erfahren Sie mehr über die vom Codegenerator erzeugten Dateien und Ordner. Verwenden Sie die Codegenerierungs-Projektvorlage, um große Projekte zu organisieren. Projekte helfen Ihnen dabei, erforderliche Dateien zu finden, Dateien und Einstellungen zu verwalten und zu teilen, mit Source-Control-Anwendungen zu interagieren, Controllercode zu generieren und Testharness-Simulationen auszuführen.
Sie können mit Generate Code by Using the Quick Start Tool beginnen.
Apps
| Embedded Coder | Generate readable, compact, and fast C and C++ code for embedded processors used in mass production |
Funktionen
Themen
Generieren von Code
- Generate Code by Using the Quick Start Tool
Prepare a model for quickly generating readable, efficient code. - Increase Code Generation Speed
Alter a model to increase the speed at which the code generator generates code. - Generate Code Using Embedded Coder
Select a target for a Simulink® model, configure options, generate C code for embedded systems, and view generated files. - Internationalization and Code Generation
Internationalization support for enabling efficient globalization. - What Is Code Replacement?
Why and how to replace code. Code replacement libraries that MathWorks provides. Contents of a code replacement library and how the code generator uses the contents. Terminology and limitations. - Replace Code Generated from Simulink Models
This example shows how to replace generated code by using a code replacement library. - Control Regeneration of Top Model Code
Choose options for regenerating code for the top-level model. - Set Up Model for Controlling Program Execution
Set up a model so that you can start and stop program execution for logging output, monitoring data, and tuning parameters. - Configure Model for Debugging
Configure a model so that generated code and the build process are set for debugging.
Codegenerierung mit Projekt
- Generate Code and Simulate Models in a Project
This example shows how to use the code generation template for a new Project. - Generate Code and Simulate Models Programmatically with Project
This example shows how to use the Project API to create a new project and automate project tasks for manipulating files.
Dateien und Ordner der Codegenerierung
- Manage Build Process Folders
Manage folders that the code generator creates. - Manage Build Process Files
Work with generated source files and dependency files that the code generator produces. - Manage Build Process File Dependencies
Work with generated source files and dependency files that the code generator produces. - Build Process Support for File and Folder Names
Troubleshoot build process errors that occur when file system issues prevent file processing. - Manage File Packaging of Generated Code Modules
Generate code modules and header files with the code generator.
Tutorials für die Codegenerierung
- Develop and Deploy Embedded Software Components to Platform Services by Using Embedded Coder
Manage a code generation workflow from model preparation to code deployment.
- SCHRITT 1: Prepare Models for Code Generation
- SCHRITT 2: Configure Basic Code Generation Settings
- SCHRITT 3: Define the Interfaces Between the Generated Code and Your Deployment Platform
- SCHRITT 4: Apply Code and Deployment Configurations to Models
- SCHRITT 5: Call Existing Code from a Model and Generated Code
- SCHRITT 6: Optimize the Generated Code
- SCHRITT 7: Test the Generated Code
- SCHRITT 8: Deploy the Generated Code
Rust-Bindings mithilfe des Simulink Support Package for Rust Code
- Generate Rust Bindings for Simulink Generated C Code
Learn how to generate Rust® bindings for C code generated from a Simulink model using the Rust wrapper API.
