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
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
- Research and design patterns in the blog application system design
- Design and Implementation of a New Framework of Micro Pay Platform
- Development and Research of Web Application System with Struts Framework
- The Online Studying System of Computer Graphic Based on VML
- Design and Implement of Equipment Management System Based on Design Patterns
- Researching the Source of Education Management System of Struts Framework Based on MVC Designed Pattern
- Design and Implementation of Web Application Framework Based on .NET
- Component-based software framework for Research and Implementation
- Component - based development practices research
- "PX" Issues under the Construction of Multiple Discourses
- The Design and Implementation of the XML Database Client
- Design and Implementation of Software for Children’s Elementary Painting Education Based on iOS
- Design and Implementation of Grain Purchase and Sale Management Information System Based on Web Framework
- Research on Network System of Information Distribution and Relative Technology Based on Discrete State Predictor
- E-government Culture:the Research of Connotation and Development Strategy
- Design of Visual Force
- Local perspective in painting creation
- The paper sound painting modeling life - about animation films combine
- Application of Frame Semantics to English Vocabulary Teaching in Junior College
- An Experimental Research on English Reading Teaching in Rural Senior High School from the Perspective of Frame Semantics