将/编译Python代码转换为可读C
我正在为专门的硬件目标(带有自己的C编译器)编写实时软件。
到目前为止,我已经使用MATLAB进行算法开发,然后使用MATLAB的代码生成功能将MATLAB代码转换为C,此时,我将生成的代码集成到实时软件中。
但是我真的很想从MATLAB转移到Python进行算法开发,这意味着我需要一种将/编译Python代码转换为人类可读和可维护 C代码的方法。因此,例如,Cython不是一种选择,因为它会产生不可读取的代码,更不用说可维护的代码了。
有什么想法吗?
I'm writing real-time software in C for a specialized hardware target (with its own C compiler).
Up until now I've used Matlab for the algorithm development and then used Matlab's code generation feature to convert the Matlab code to C, at which point i'd integrate the generated code into the real-time software.
But I'd really like to move away from Matlab to Python for the algorithm development, which means i need a way to convert/compile Python code to human readable and maintainable C code. So for example, Cython is not an option, since it produces code which is not human readable, let alone maintainable.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论