Improving C/C++ Preprocessing Mechanisim

Author
RaoWei
Advisor
ZhangWeiShan , WangChun
School
Tongji University
Major
Software Engineering
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2007
Downloads
108
Citations
0

Request the full text

Abstract

c / c is widely used in the control, communications, and large-scale operating system and other software development. Compile c / c program, you need to be pretreated (Preprocessing), compile (compilation), assembly (assembly) and connections (linking) four stages. Pretreatment plays an irreplaceable role in the compilation process can improve the program structure, improve the program functions, enhanced scalability, and automatic generation of code designed for a specific architecture configuration adjustment. Target function of existing preprocessor directives semantic feature analysis as well as the advantages and disadvantages of the existing improvements into account, we find that the existing pretreatment in the C text sub-replacement name, conditional compilation, namespace, The code redundancy many ways there are grammatical and semantic defects, resulting in the development of software systems reuse is not high, it is difficult for software maintenance configuration. In order to overcome these shortcomings, Frame technology to improve the original core of the system model based on the advanced configuration language XVCL (XML-based Variant Configuration Language) preprocessing mechanism. Starting from the point of view of software reuse, combined interpreter mode and the iterator mode of thinking of solutions to the implementation of reasonable segmentation system module, the instruction set of interactive modules and grammar model design. Add the original metadata semantic model configuration information to expand the original instruction set semantics, and support program from the syntax and semantics of structural remodeling. Frame structure of the document processing application in variable configuration ideological project files organized according to the needs and functional point into a tree structure, and define the variable scoping mechanism to increase reusability. According to the engineering requirements of the different characteristics of the configuration of the different particle size control by the global configuration information. Reuse-oriented variable scope, the file tree forms of organization, as well as improved grammar model can effectively solve the problems of the original preprocessing mechanism, such as cross-references, code reuse is not high, a large number of duplicate code defects. C STL library based on the code level using automated tools CCFinder analysis, and analysis based on the design level domain model can be found in the document description, attribute definitions, construction methods and method defined in several ways exist to varying degrees the phenomenon of code cloning. The XVCL use this configuration ideological and improvement of means to refactor code and re-block individual structural units are configured into reusable form. Reduce the LOC (LineOfCode), to improve the scalability and reusability of the STL library, source-level, multi-granularity variable configuration support, and improved code compatible with the existing code to validate the method sex.

Related dissertations

  1. Research and design patterns in the blog application system design
  2. Design and Implementation of a New Framework of Micro Pay Platform
  3. Development and Research of Web Application System with Struts Framework
    ZhangWeiZheng ·Taiyuan University of Technology ·2008 ·Master's thesis
  4. The Online Studying System of Computer Graphic Based on VML
    LuoDiYong ·Guizhou Normal ·2008 ·Master's thesis
  5. Design and Implement of Equipment Management System Based on Design Patterns
  6. Researching the Source of Education Management System of Struts Framework Based on MVC Designed Pattern
    ChenXueTao ·Guizhou Normal ·2007 ·Master's thesis
  7. Design and Implementation of Web Application Framework Based on .NET
  8. Component-based software framework for Research and Implementation
    LiangPeiMing ·Dalian University of Technology ·2007 ·Master's thesis
  9. Component - based development practices research
    LuJie ·Anhui University ·2004 ·Master's thesis
  10. "PX" Issues under the Construction of Multiple Discourses
    ChenMingHui ·Anhui University ·2014 ·Master's thesis
  11. The Design and Implementation of the XML Database Client
  12. Design and Implementation of Software for Children’s Elementary Painting Education Based on iOS
  13. Design and Implementation of Grain Purchase and Sale Management Information System Based on Web Framework
    SunZhong ·Hunan University ·2014 ·Master's thesis
  14. Research on Network System of Information Distribution and Relative Technology Based on Discrete State Predictor
  15. E-government Culture:the Research of Connotation and Development Strategy
    BiXueJuan ·Northeastern University ·2012 ·Master's thesis
  16. Design of Visual Force
  17. Local perspective in painting creation
    DingXin ·Central Academy of Fine Arts ·2014 ·Master's thesis
  18. The paper sound painting modeling life - about animation films combine
    WenJiang ·Sichuan Normal University ·2012 ·Master's thesis
  19. Application of Frame Semantics to English Vocabulary Teaching in Junior College
    HouShengE ·Sichuan Normal University ·2013 ·Master's thesis
  20. An Experimental Research on English Reading Teaching in Rural Senior High School from the Perspective of Frame Semantics
    LiangXueFen ·Guangzhou University ·2013 ·Master's thesis