Font Size: a A A

Improving C/C++ Preprocessing Mechanisim

Posted on:2008-02-18Degree:MasterType:Thesis
Country:ChinaCandidate:W RaoFull Text:PDF
GTID:2178360212979920Subject:Software engineering
Abstract/Summary:PDF Full Text Request
C/C++ is object-oriented industry language which is broadly applied in the development of the softwares, such as control,communication and large operate system...etc. Compare to the other object-oriented language, it is depend on in on its compatiblity to c languange. While compiling c/c++ programs,should four phases which are pass preprocessing,compilation,assembly and linking. Preprocessing plays an important role in the whole compiling process,it can improve the procedure structure, procedure funtion,enhance extensibility,also it can automatically generate codes that meet the configuration for specific architecture.Along with the development of the software engineering and the program design, appear a lot of new design methods, such as design pattern, AOP,code refactor. Although these methods are independence in concrete language, however the phrasing of the language use support,the language righteousness structure...etc will influence the usage and the efficiency of methods. On c/c++ preprocessing,because the traditional mechanism is based on substitution of text,and have no consideration of concrete context environment. This kind of preprocessing exists defects on handle the mechanism to include files,the macro function scope,relation ship between files in a same projects,thus it will influence the engineering item heavily to reuse the code, and lower the maintainability,extensibilityof the project. Take the code refactoring as an example, the program can have a better structure analysis only after the finish of proprocessing, meanwhile the context instruction information on this is passed away. Once there is no direct relationship with the source code, the programmer can not possibly to understand the result of code refactor..This paper considers the solution for solving the defects on c/c++ preprocessing as a goal. It researches the traditional preprocessing mechanism using frame technology and implements it using design pattern concept to enhance the reusability of program. During the process of comparing diffent instructions, it describes disadvantages of current processor and the reason/solution for it,also analysis the subtitution solution and meta-data module,and then discuss implemention of this framework.We will firstly introduce related concepts about c/c++ preprocessor, after the analysis on the background of the topic,the current status of preprocessor and its defects, it will put forward the research method,target and main items. Further more,...
Keywords/Search Tags:c/c++preprocessor, Frame technology, XVCL, Code Reusablility, Design pattern
PDF Full Text Request
Related items