比较金宝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图形和UI设计与Matlab App Designer设计。要使外部仿真环境暗示,您可以生成坚持功能模型界面(FMI)标准的独立功能模型单元(FMU)二进制文件。
金宝appSimulink编码器™从Simulink模型,StateFlow生成并执行C和C ++代码金宝app®图表和MATLAB功能。生成的源代码可用于实时和非实时应用,快速原型设计和硬件循环测试。您可以使用simulink或运行和与matlab外部的代码交互来调谐和监视生成的代码。金宝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 / C ++代码,可以部署在金宝app嵌入式平台或桌面上 |
输出 | 可执行文件或软件组件或共享库 | Portable and readable C/C++ source code |
金宝appSimulink块支持金宝app | Simulink中快速加速器模金宝app式支持的所有块金宝app | A subset of Simulink blocks |
金宝app支持的BlockSets. | 在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(Windows金宝app,Mac和Linux支持的所有平台) | 支持ANSI / ISO C / C金宝app ++代码的任何平台 |
它会生成可读代码吗? | 不,只有不可读取的共享库 | 是,可读源代码 |
它比Simulink更快吗?金宝app | 在Simulink中以与快速加速器模式相同的速度运行。金宝app | 根据算法,有可能更快。优化的MATLAB函数(例如FFT或图像处理和计算机视觉功能)使用GPU编码器GPU编码器™来生成的代码不更快,以生成可能在NVIDIA GPU上运行的CUDA源代码。 |
Does it take advantage of hardware accelerators? | 金宝app支持与Matlab相同的硬件,包括GPU和AVX。通过并行计算工具箱支持多核和群集金宝app | 可以使用OpenMP API支持在本地多核机器上运行的C代码。金宝app使用GPU编码器生成在NVIDIA GPU上运行的CUDA源代码。使用HDL编码器™生成在FPGA上运行的Verilog或VHDL。 |
桌面上的内存使用差异是多少? | 高度依赖于可执行文件。matlab运行时本身使用比Simulink编码器更多的内存。金宝app | 高度依赖于MATLAB代码。 |
每个软件支持的文件I / O格式是什么?金宝app | 金宝app在MATLAB支持所有格式的支持 | Limited file support: text files, audio, and video formats. Does not support image formats. |