Can matlab coder generate C code more intelligently based on human language expressions?

3 views (last 30 days)
According to my recent incomplete understanding, similar code generation tools are becoming more and more intelligent, such as deepmind's alphacode, Carnegie Mellon University researchers launched an open source automatic code generator model PolyCoder, etc. These tools are obviously superior to the "matlab coder toolbox These tools are clearly superior to the "matlab coder toolbox" traditional products to generate C code, how will TMW adjust its product strategy direction?
The current matlab coder toolbox disadvantages are:
1, code generation has many restrictions, to human constantly modify matlab source code in order to better support C code generation; ;
2, the generated C code files or functions is more,the form is not concise, beautiful and elegant;
3, the generated C interface function is not easy to be used by external integration, involving too many memory applications to release and other issues.

Answers (1)

Bill Chou
Bill Chou on 23 Mar 2022
Hi Cui,
Thanks for your feedback. We're interested in customer feedback to make MATLAB Coder better for users. If you'd like to discuss further, please reach out to us.
Thank you,
Bill
  1 Comment
cui,xingxing
cui,xingxing on 24 Mar 2022
Edited: cui,xingxing on 24 Mar 2022
Very good, thank you for taking time out of your busy schedule to communicate with users about their needs, I look forward to your reply!
你好!bill chou,我是来自于中国的一名长期用户叫崔星星,在matlab answer里面谢谢你关注我的问题和答复。我英语表达能力比较若,就改为中文了,感谢理解。关于matlab coder产品做的非常棒,我一直很喜欢,但个人觉得也有不足之处,就类似在matlab answer社区我问的问题,matlab coder命令行好像还不支持单个文件.h/.c文件生成,simulink coder是可以的,我个人不喜欢使用simulink,更喜欢你的命令行生成C代码,灵活性较高。然后就是生成的C代码中类型有很多是自定义的或者提供对应matlab类型的emx_*API、各种初始化、终止释放、支持无界数据等等,另外代码中好多是赤裸裸给最终用户暴露内存分配/释放等接口,这非常不利于其他第三方用户集成使用。我想表达的意思是尽量少出现这些,比如很早之前opencv库的C接口iplimage就比较底层(创建内存图像,手动释放),而后面的Mat类型对用户就更友好。
崔星星

Sign in to comment.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!