如何在Windows下使用Matlab嵌入式编码器编译LINUX?

时间:2014-12-01 16:58:11

标签: linux matlab simulink matlab-coder intel-atom

我正在尝试将Simulink算法编译为CarPC。 CarPC基于Intel Atom处理器,可在LINUX中运行。我们的想法是使用Matlab嵌入式编码器将Simulink代码编译到特定目标。

问题是我不知道我是否可以使用我的Windows版本的Matlab来编译算法,然后在LINUX上使用它。我的意思是,从Windows编译到LINUX。

使用Windows的Matlab R2014a和带LINUX的Intel Atom处理器是否可行?

1 个答案:

答案 0 :(得分:0)

正如@ThP所说,是的,你可以。一种选择是在Windows机器上生成C代码,然后将生成的代码移动到具有嵌入式目标的C编译器的机器上,并在那里编译C代码。

确保在{}中设置target hardware

Simulation > Model Configuration Parameters > Hardware Implementation

与Atom处理器/编译器兼容。同时将模型设置为generate code only

Simulation > Model Configuration Parameters > Code Generation

如果您打算在另一台计算机上编译生成的代码。

有很多关于为the Simulink Coder documentation中的其他目标生成代码的其他信息。