Font Size: a A A

Design And Implementation Of Embedded Development Tool-chain Based On Python

Posted on:2015-12-03Degree:MasterType:Thesis
Country:ChinaCandidate:F C MengFull Text:PDF
GTID:2298330431492657Subject:Circuits and Systems
Abstract/Summary:PDF Full Text Request
In order to simplify the complexity of the process of the embedded devicesdevelopment, I studied the building process of the compiler and the integrateddevelopment environment for the embedded devices. Aiming at improving the currentthe development process of embedded devices, I design one new simple programminglanguage and implement its compiler for embedded devices and its virtual machinefor simulating on the x86computers, one framework for writing object oriented codeswith pure c language and one integrated development environment. All these thingsconstitute one tool chain for the development of embedded devices. This paper willdiscuss the process of implementing all these things in depth and the difficultyencountered in the implementation process were analyzed and summarized.For the problem of uniformity of current development of embedded devices, alightweight programming is designed and implemented. During the process ofachieving the compiler and virtual machine of this language, I study the theories oflexical analysis, semantic parsing algorithms, summarize the instructions of armcortex-m series processors. To simplify the debugging process, I also implement onevirtual machine for software simulating, the virtual machine is running on x86computers. These things are all implemented in Python programming language,which assures the simplicity, readability and maintainability of codes.To improve the abstraction ability of embedded c language, the current C++’sobject model is analyzed, design one new object oriented model and implement oneframework for c language upon this new model. With the help of modern c languagecompiler, the object oriented framework’s implementation only use c language’smacro expansion feature and meta-programming techniques, which makes it easy touse and enhance the c language’s ability of abstraction.Finally, implement one integrated development environment which covers thefeatures of project management, code editing and program launching.The integrateddevelopment environment is build upon the famous PyQt library, which simplify the process of coding. The editor in the environment is build upon QScintilla library,which provide the advanced feature of syntax highlighting and auto completion. Thedevelopment of self-designed language and c language is covered in the integrateddevelopment environment,which make the research and implementation of these threethings an integrity. All of these works contribute to the work of simplifying ofdevelopment of embedded devices and offer a variety of options.
Keywords/Search Tags:embedded device, compiler, editor, integrated development environment, Python
PDF Full Text Request
Related items