Design and Realization of the C Code Rule Compiler Based on Mobile Station
- Author
- FanTieHu
- Advisor
- JinYuShan
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 57
- Citations
- 0
Abstract
With the vigorous development of the software industry , the quality of the software product is good or bad become an important indicator to measure the success of software enterprises , the key factors affecting the quality of software products is the preparation software code compliance . If the software enterprises in the coding stage can follow a certain code rules , this will be a great benefit in improving the quality of software products . Therefore, we designed a C code rules the compiler RuleC Engine , in addition to its like traditional compiler to be able to check the C code , but also to achieve the following functions : found C code syntax wrong , do not stop to check , and still continue to code rule checking ; rules required to check the C code can be increased according to the needs of users at random , delete, or modify ; able to use in the system such as windows, solaris platform ; statistical software complexity of C code , provides a measure of the quality of C code an important indicator . In order to achieve a more complete generic ANSI C99 standard C code rules compiler , in this article , the first rule compiler for C code used in software complexity ( McCabe complexity ) , Yacc and Java Visitor design mode software development technology , based on a the ANSIC 99 standard content analysis , and C code rule compiler system structure , design and realization of the compiler rules system testing of C code will compile made a performance comparison with a traditional compiler , the compiler Looking . Reasonably able to make the software development team to form a unified code development style to improve the portability and maintainability of modules to help software developers to generate high - quality C code using C code rule compiler to improve the development of software product quality reduce product testing and customer use probability problem .
Table of contents
Chapter summary of the thesis 9-12
1.1 topics theoretical significance and application value 9-10
1.2 the research situation and development trend 10-11
1.3 of this thesis work done 11
1.4 This paper is structured 11-12
software development technology Introduction 12-25 < br /> 2.1 software complexity the 12-19 2.2 YACC About
19-21
2.3 VISITOR mode briefly 21-25
2.3. 1 Visitor visitor pattern defines 22
2.3.2 Why use the Visitor 22-23
2.3.3 the Visitor pattern involved role 23
2.3.4 Visitor mode applicable 23-24
2.3.5 advantages and disadvantages of using the Visitor pattern 24-25
system analysis 25-38
3.1 ANSI C99 standard analysis the 25-27 3.2 system structure
27-32
3.3 Summary of system processes are found; 32-35
3.4 interfaces implemented 35-37
3.5 to determine the design goals 37-38 of
fourth chapter system design 38-89
4.1 overall design 38-39
4.2 the input subsystem design the 39-43 4.2.1 input subsystem functions
39-40
4.2.2 Enter the subsystems constitute 40-42
4.2.3 input the subsystem input output 42-43
4.3 preprocessing subsystem design 43-45
4.3.1 pretreatment subsystem functions 43
4.3.2 pretreatment subsystem constitutes 43-44
4.3.3 pretreatment subsystem the input output 44-45
4.4 parsing subsystem design 45-52
4.4.1 parsing subsystem features 45-46 <br / > 4.4.2 ANSI C syntax processing the 4.4.3 gcc
46-49 specialized syntax for handling 49-52
4.5 semantic parsing subsystem design nbsp the semantic parsing subsystem functions; 52-59
4.5.1 52-54
4.5.2 semantic parsing subsystem constitutes 54-57
4.5. semantic parsing the input-output subsystem 57-59
4.6 monomer to generate subsystem design 59-60
4.6.1 monomer generation subsystem functions the subsystem 59
4.6.2 monomer generated constitute the generation subsystem input and output nbsp 59
4.6.3 monomer; 59-60
4.7 single the binding subsystem design 60-62
4.7.1 monomer binding subsystem functions are found; 60-61
4.7.2 monomers combine subsystems constitute 61-62
4.7.3 monomer combination of input and output subsystems 62
4.8 output subsystem design 62-69
4.8.1 Output subsystem functions 62-65
4.8.2 Output subsystems constitute 65-68
4.8.3 output the subsystem input output 68-69
4.9 the METRICS output subsystem design 69-83
4.9.1 metrics, output subsystem functions 69-77
4.9.2 metrics, output subsystem constitute 77-83
4.9.3 metrics, output subsystem of the input and output 83
the 4.10 rule checking drive subsystem design 83-87
4.10.1 Rules check drive the subsystem functionality 83-85
4.10.2 rule checking drive a subsystem constitute 85-86
4.10.3 rule checking drive subsystem input and output 86-87 the
the 4.11 rule checking subsystem design 87-89
4.11.1 the rule checks subsystems function 87
4.11.2 rule checking subsystem constitutes 87-88
4.11.3 rule checking input-output subsystem 88-89
Chapter V system to achieve 89-98
5.1 input subsystem implementation the 89-92
5.2 semantic parsing subsystem implementation 92-93
5.3 output subsystems to achieve 93-95
5.4 METRICS subsystem implementation 95-96
5.5 rule checking driver rule checking subsystem to achieve 96-98
sixth chapter system test 98-101
Chapter VII System Looking 101-102
conclusion 102-103
Reference 103 - 105
Summary 105-108
ABSTRACT 108-110
thank the 110
Related dissertations
- LALR (1) the design and Realization of the system automatically generate parsers
- Implementation of the Parser of TTCN-3 by Parser Generator Based on the Windows System
- The Analysis and Realization of Database Language SQL
- Stack -based virtual machine based development platform for the design and implementation of operational
- Linux-based PL/SQL Compiler
- Design and Develop of Instrument Virtual Computer Assembly Language Based on DSP
- Study and Implementation on the Rapid Analysis and Output System Based on Printed Test Data
- Research on SQL Complier of Database Engine