Font Size: a A A

Research And Implementation Of Integrated Development Tools For Micro Python

Posted on:2022-12-06Degree:MasterType:Thesis
Country:ChinaCandidate:Q G HanFull Text:PDF
GTID:2518306764480254Subject:Computer Software and Application of Computer
Abstract/Summary:PDF Full Text Request
In the field of Internet in recent years,embedded system has become the main development direction of future computer system.As a compiled language,C language runs directly,can directly convert the code into machine code,can directly access the hardware,because there is no interpreter,its memory space occupancy rate is low,the program running efficiency is high,is the embedded system commonly used programming language.However,compiled languages have no intermediate code conversion steps,rely on the compiler,are poorly cross-platform,have a long development cycle,are extremely unfriendly to developers,and are expensive to learn for developers.It is based on these problems that Micro Python was born.Micro Python was created to solve the problem of C on an embedded platform.Micro Python is portable and free of compiler constraints due to the introduction of intermediate code and an interpretation environment.Micro Python is easy to develop and deploy quickly,easy to learn and use,and greatly beneficial to technical developers,which makes Micro Python has great potential for future embedded development.However,Micro Python still has the following problems :(1)the compiler and interpreter coexist on an embedded platform,which takes up a lot of memory;(2)Lack of code protection for intermediate code;(3)Low operation efficiency,compared with C language,tens of times slower.In this paper,an integrated development tool is designed to directly generate Micro Python bytecode files on the PC side,delete the compiled part of the code on the embedded platform,and only retain the virtual machine execution code to achieve cross-compilation.In view of the lack of code protection for intermediate code,this paper designs a protection method for Micro Python bytecode files based on code obfuscation technology,and integrates it into the development tool designed by myself.The design validation of this paper is implemented and experimented on Pandora STM32L475 platform,using Micro Python open source version V1.17.The main way of verification in this paper is the correctness and validity of the code transmitted to the embedded end by the intermediate code files generated by integrated development tools after the separation of compiler and interpreter,and the correctness and validity of the final code results after the implementation of code obfuscation technology.The final test results show that the correctness and effectiveness of the integrated development tool designed in this paper can meet the requirements.The innovation highlights of this paper are mainly reflected in the design of Micro Python cross-compiler,the reconstruction of Micro Python interpreter in embedded side,and finally achieve the purpose of freeing the memory space of embedded platform.At the same time,code obfuscation technology was introduced and a confounding device was designed to increase the security of Micro Python bytecode files.The final solution to Micro Python's performance and security issues laid the foundation for promoting MPY in embedded platforms.
Keywords/Search Tags:Micro Python interpreter, cross-compilation, code obfuscation, integrated development tools
PDF Full Text Request
Related items