Generazione di codice C
Generare codice C e C++ dagli algoritmi di elaborazione del segnale in DSP System Toolbox™ utilizzando i prodotti MATLAB Coder™ e Simulink Coder. È possibile integrare il codice generato nei progetti come codice sorgente, librerie statiche, librerie dinamiche o persino eseguibile standalone. Per ulteriori informazioni, vedere Understanding C Code Generation in DSP System Toolbox. Per un elenco delle funzioni e dei blocchi che supportano la generazione di codice C/C++, vedere rispettivamente Functions and System Objects in DSP System Toolbox that Support C Code Generation e Simulink Blocks in DSP System Toolbox that Support C Code Generation.
Inoltre, è anche possibile generare codice ottimizzato per i processori ARM® Cortex® -M e per i processori ARM Cortex-A utilizzando il prodotto Embedded Coder®. Per ulteriori informazioni, vedere Generazione di codice per i processori ARM Cortex-M e ARM Cortex-A. Una volta generato il codice, è possibile trasferirlo in un altro ambiente di sviluppo in cui non siano installati i prodotti MATLAB e Simulink. Per gli esempi, vedere Relocate Code Generated from MATLAB Code to Another Development Environment e Relocate Code Generated from a Simulink Model to Another Development Environment.
Funzioni
codegen | Generate C/C++ code from MATLAB code |
Argomenti
- Understanding C Code Generation in DSP System Toolbox
Generate C code from DSP System Toolbox signal processing algorithms using MATLAB Coder and Simulink Coder.
- Functions and System Objects in DSP System Toolbox that Support C Code Generation
Find the functions and System objects that support C/C++ code generation in DSP System Toolbox using the filtered view of the generated list.
- Simulink Blocks in DSP System Toolbox that Support C Code Generation
Find the blocks that support C/C++ code generation in DSP System Toolbox using the filtered view of the generated list.
- MATLAB Language Features Supported for C/C++ Code Generation (MATLAB Coder)
Use the MATLAB language features and functions that code generation supports.
- System Objects in MATLAB Code Generation (MATLAB Coder)
Special considerations for using System objects in code generated from MATLAB.
- Generate C Code from MATLAB Code
Prepare MATLAB code for code generation and generate C-MEX code and a C executable.
- Relocate Code Generated from MATLAB Code to Another Development Environment
Generate an executable from MATLAB algorithm. Package the executable to run on an external environment.
- Generate C Code from Simulink Model
Build an executable and run the executable within MATLAB.
- Relocate Code Generated from a Simulink Model to Another Development Environment
Generate an executable from Simulink model and package the executable to run on an external environment.
- In-Place Memory Optimization
Optimize the memory usage of generated code through the technique of in-place memory optimization.
- Plot Array on Android Device
Array Plot with Android Devices.
- How To Run a Generated Executable Outside MATLAB
Commands to set the system environment for generating executables that require prebuilt dll files.
- Use Generated Code to Accelerate an Application Deployed with MATLAB Compiler
Use MATLAB Coder to accelerate an algorithm and MATLAB Compiler™ to deploy the application.