Main Content

比较金宝appCoderand金宝app编译器

金宝app®编译器™enables you to share Simulink simulations as standalone executables. You can build the executables by packaging the compiled Simulink model and the MATLAB®代码以设置,运行和分析模拟。独立的可执行文件可以是使用MATLAB应用程序设计器设计的MATLAB图形和UIS的完整模拟应用程序。为了与外部仿真环境进行共同拟合,您可以生成符合功能模型接口(FMI)标准的独立功能模型单元(FMU)二进制文件。

金宝appSimulink编码器™从simulink模型,stateflow生成并执行C ++代码金宝app®图表和MATLAB功能。生成的源代码可用于实时和非实时应用程序,快速原型制作以及硬件在循环测试中。您可以使用Simulink调整并监视生成的代码,或运行并与MATLAB和SIMULINK外部的代码进金宝app行交互。

差异

The following table states the major comparisons between金宝appSimulink编译器and金宝appSimulink编码器。Use this table to understand the differences between the applications and usage of the two products.

输出和支持金宝app 金宝appSimulink编译器 金宝appSimulink编码器
Main Use Case 将模拟作为台式机或生产服务器上的独立可执行文件部署 生成可以在嵌入式平台或桌面上部署的Simulink模型的便携式C/金宝appC ++代码
输出 可执行或软件组件或共享库 Portable and readable C/C++ source code
金宝appSimulink块支持金宝app Simulink中快速加速器模金宝app式下支持的所有块金宝app A subset of Simulink blocks
金宝app支持的块 Simulink中快速加速器模式支持金宝app的所有块金宝app A subset of Simulink blocks
Production MATLAB生产服务器 嵌入式编码器
金宝app动态仿真模块Graphics Support 金宝app支持MATLAB图形。 没有任何
库依赖性 MATLAB运行时 没有任何

关于金宝app编译器and金宝appCoder

下表回答了有关使用的一些常见问题金宝appSimulink编译器and金宝appSimulink编码器,例如所需的内存,性能和其他有关支持的问题。金宝app

常见问题 金宝appSimulink编译器 金宝appSimulink编码器
生产哪些文件? 共享的可执行文件或库以及所需的MATLAB运行时组件。 源代码 (*。c& *。h) that can be compiled into shared libraries and executables
这些文件可以部署到哪些平台? 所有由MATLAB支持的平台金宝app(Windows,Mac和Linux) 任何支持ANSI/ISO C/C +金宝app+代码的平台
它会生成可读的代码吗? 不,只有不可读的共享库 是的,可读的源代码
它比Simulink快吗?金宝app 在Simulink中的快速加速器模式以相同的速度运行。金宝app 取决于算法,有可能更快的速度。对于优化MATLAB功能(例如FFT或Image处理以及计算机视觉功能),生成的代码使用GPU Coder GPU Coder™生成CUDA源代码,该源代码可能会在NVIDIA GPU上运行更快。
Does it take advantage of hardware accelerators? 金宝app支持与MATLAB相同的硬件,包括GPU和AVX。通过并行计算工具箱支持多核和群集金宝app 可以使用OpenMP API支持在本地多功能机上运行的C代码。金宝app使用GPU编码器生成在NVIDIA GPU上运行的CUDA源代码。使用HDL Coder™生成在FPGA上运行的Verilog或VHDL。
桌面上的内存使用有什么区别? 高度依赖于可执行文件。MATLAB运行时本身使用的内存比Simulink编码器更多。金宝app 高度依赖MAT​​LAB代码。
每个软件都支持哪些文件I/O格式?金宝app 金宝app在MATLAB支持所有格式的支持 Limited file support: text files, audio, and video formats. Does not support image formats.

Related Topics