MATLAB Compiler vs MATLAB Coder

后端 未结 4 605
栀梦
栀梦 2020-12-01 00:44

What\'s the difference between the two?

As far as I understand it, MATLAB Compiler wraps the MATLAB code into a .exe file so that it can be used without installing M

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 01:33

    MATLAB coder generates C/C++ code, which could also depend on 3rd party libraries such as intel's TBB/IPP. If you want truly vanilla C/C++ code, you need MATLAB's embedded coder.

    On the other hand, MATLAB compiler produces encrypted executables/libraries/etc which runs against MCR (Matlab runtime library). This requires the target computer to pre-install MCR (at no cost). Since MCR is over 1 GB in size, it's not very retargetable.

    MATLAB coder is also more expensive than MATLAB compiler.

提交回复
热议问题