The Design of CoreABC Code Generation Based on AnyviewC

Author
GuoChaoWei
Advisor
WuWeiMin
School
Guangdong University of Technology
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2013
Downloads
7
Citations
0

Request the full text

Abstract

Directly used in the teaching experiment the CoreABC instruction code programming, for initial contact digital circuits students there is a certain degree of difficulty, resulting in difficult to achieve the purpose of the experiment and to understand CoreABC micro control system. If instead of using the standard C language program CoreABC instruction program, you can reduce the difficulty of programming, thereby enhancing the efficiency of the teaching and development.C language code generator of CoreABC in the the embedded C AnyviewC language compiler based on combined the CoreABC instruction system design and implementation, the goal is the standard C language code program into CoreABC instruction sequence code, enables users to write and easy to understandprogram directly obtained target instruction sequence.Design and Implementation of the code generator consists of two parts:front-end and back-end of the generator. The front-end processing lexical analysis, parsing and syntax-directed translation, final result set of front-end processing; each element to the back-end through processing front-end result set, the final target instruction code sequence. The issue is a key part of that generation front-end design and implementation of correctness, that part is mainly reflected in the C language compiler the AnyviewC embedded expansions and modifications, including an extension of the C language library functions, the expansion of lexical analysis, parsing and Guidancetranslation extension design also involves the design of the the CoreABC register and memory addresses. The CoreABC associated with the operation of the hardware. C language can not directly implement, requires the use of expansion for the library functions to achieve the same function for some special instruction: Parsing and guided translation process is a critical part of the design of this project, the control fiow structure, function calls, and so on must be re-designed to achieve, so that the intermediate code conversion the distal end result can be obtained sequence of CoreABC instruction set for each a in C language operators. The rear end portion of the code generator of CoreABC is carried out on the basis of the preceding result set based on the design of the machine code machine corresponding operand processed in the previous result set obtained the final CoreABC target instruction sequence.This article describes the design and implementation of the CoreABC code generator to test the feasibility of the design, the focus is reflected in the design part of two parts of the analysis and research of the standard C language and instruction system of CoreABC, design code generator front-end and back-end, and the related experimental verification analysis. Finally with some examples to test the feasibility of the design, and on correlation analysis to prove this method can be extended.

Related dissertations

  1. The Research of IPv6Transition Technology Based on Tunnel and ⅠⅥ Mechanism
  2. Implementation of Visualization System on Uncertain Functions
  3. A Study on the Translation of Wushu Terms under Globalization Background
    AiChunJiao ·Central China Normal University ·2014 ·Master's thesis
  4. Comparison and translation of Chinese and Western culture in Chinese and English Idioms
  5. "Hualong news" (2012.10-2013.9) translation project report
  6. "Hualong news" (with the title translation as the center) translation project report
  7. \
  8. "Hualong news" (2012.11-2013.5) translation project report
  9. Translation Chinese headlines and blurbs from the perspective of Relevance Theory
    WangZuo ·Central South University ·2012 ·Master's thesis
  10. "Nature" on the art of translation Report
    MaXun ·Sichuan University of foreign languages ·2014 ·Master's thesis
  11. About "go against the current Henie ocean, rivers and streams" translation project report
  12. Equivalence of translation in French - law in the "French Civil Code" as an example
  13. "Germany is bring about" translation Report
  14. The tail end of sentence analysis using particle "and" J "effect of pragmatics and translation methods
    WangLinNa ·Tianjin Normal University ·2013 ·Master's thesis
  15. A Study of Lu Xun's Translation Activity
    ZhangJinXia ·Ningbo University ·2013 ·Master's thesis
  16. The Study on the Tanaka Kodaro's Translation of Liao Zhai Zhi Yi
    YangLiu ·Tianjin Normal University ·2013 ·Master's thesis
  17. Japanese news translation practice and Research Report
  18. Expression of Japanese "V - in / national" and its significance in Translation
    LiuShiLin ·Liaoning Normal University ·2013 ·Master's thesis
  19. Expression of Japanese double negative way studies to Translation Center
    LiuYu ·Liaoning Normal University ·2013 ·Master's thesis
  20. Practice Project Report on Scientific and Technical Literature