期刊文献+

编译型嵌入式Python的设计与实现 被引量:2

Design and implementation of compiled embedded Python
在线阅读 下载PDF
导出
摘要 针对面向微控制器的解释型MicroPython具有实时性弱、占用存储空间大和可移植性较差等问题,提出一种将Python语言转化为C++语言并将构件层与应用层分离的编译型嵌入式Python方案,设计基于抽象语法树及类型注释的源码映射机制。在此基础上,设计嵌入式Python编译器,实现集成开发环境AHL-GEC-IDE(for Python版),完成Python源文件的编辑、编译、链接和下载。实践结果表明,该编译型Python方案可行,为嵌入式人工智能领域提供了一种实时性较高、编辑编译方便、可移植性较强的编译型Python集成开发环境。 Aiming at the problems of poor real-time performance,large storage space and poor portability of Micro controller oriented interpretive Python,a compiled embedded Python scheme was proposed,which converted Python language into C++language and separated component layer from application layer.A source code mapping mechanism based on abstract syntax tree and type annotation was designed.On this basis,the embedded Python compiler was designed and the integrated development environment AHL-GEC-IDE(for Python version)was implemented,which completed the editing,compiling,linking and downloading of Python source files.The practice shows that the compiled Python scheme is feasible.It provides a compiled Python integrated development environment with high real-time,easy editing and compiling,and strong portability for the field of embedded artificial intelligence.
作者 李春亭 王宜怀 施连敏 张露 LI Chun-ting;WANG Yi-huai;SHI Lian-min;Zhang Lu(School of Computer Science and Technology,Soochow University,Suzhou 215000,China;Key Laboratory of Cognitive Computing and Intelligent Information Processing of Fujian Education Institutions,Wuyi University,Wuyishan 354300,China)
出处 《计算机工程与设计》 北大核心 2024年第1期79-87,共9页 Computer Engineering and Design
基金 国家自然科学基金项目(61672369) 江苏高校优势学科建设工程基金项目(PAPD) 武夷学院认知计算与智能信息处理福建省高校重点实验室开放课题基金项目(KLCCIIP2021201)。
关键词 编译型嵌入式Python 微型Python解释器 微控制器 抽象语法树 类型注释 混合编程 可移植性 compiled embedded Python MicroPython microcontroller unit abstract syntax tree type annotation hybrid programming portability
  • 相关文献

参考文献4

二级参考文献18

共引文献14

同被引文献11

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部