Konfigurieren der Codegenerierung
Konfigurieren der Einstellungen für die Codegenerierung, z. B. Name, Speicherort, Typ und Sprache der Ausgabedatei
Zum Steuern und Konfigurieren des Codegenerierungsprozesses stehen zahlreiche Parameter und Einstellungen zur Verfügung. Diese Einstellungen steuern Attribute wie den Ausgabe-Build-Typ (MEX, lib, dll oder exe) und Verwendung der Sprache C oder C++. Mit anderen Konfigurationseinstellungen können Sie den generierten Code an bestimmte Anforderungen wie Lesbarkeit, Leistung und Integration von externem Code anpassen. Sie können die Konfigurationseinstellungen im Konfigurationsobjekt für die Codegenerierung über die App oder über die Befehlszeile ändern. Das Konfigurationsobjekt erstellen Sie mithilfe von coder.config. Öffnen Sie das Objekt in der Bearbeitungs-App mit open.
Funktionen
coder.config | Create code generation configuration objects |
Einstellungen für die Code-Konfiguration
Objekte
coder.MexCodeConfig | Configuration parameters for MEX function generation from MATLAB code |
coder.CodeConfig | Configuration parameters for C/C++ code generation from MATLAB code |
coder.EmbeddedCodeConfig | Configuration parameters for C/C++ code generation from MATLAB code with Embedded Coder |
coder.HardwareImplementation | Hardware-specific configuration parameters for C/C++ code generation from MATLAB code |
coder.hardware | Create hardware board configuration object for C/C++ code generation from MATLAB code |
coder.ReplacementTypes | Configuration parameter to specify custom names for MATLAB built-in data types in C/C++ code generation |
Themen
Grundlagen der Build-Konfiguration
- Configure Code Generation and Build Settings
Configure code generation and build configuration parameters at the command line or in the MATLAB® Coder™ app. - Paths and File Infrastructure Setup
Specify location of custom code. - Build Process Support for File and Folder Names
Troubleshoot build process errors that occur when file system issues prevent file processing. - Share Build Configuration Settings
Export project settings to a code generation configuration object or import the settings into a project. - Specify Code Configuration Parameters Interactively
Configure the code generation process by using the Code Generation Settings dialog box.
Spezifische Build-Optionen
- Understand and Control Partitioning of the Generated Code
Understand how file partitioning method and inlining settings interact to control the partitioning of the generated code. - Change Language Standard Used for Code Generation
The code generator uses the language standard that you specify in the build settings.