C++ Source Code Analysis System’s Research and Design Based on G++ Front End
|School||Beijing University of Chemical Technology|
|Course||Applied Computer Technology|
|Keywords||Open source products G front end Source code analysis Semantic analysis chart|
GCC is the flagship product in the GNU open source world heavyweight products , most open source products are based on the compiler . GCC is a compiler collection , including a C compiler is . GCC using the front-end , back-end combination of front-end is responsible for processing language analysis to generate intermediate code , back-end is responsible for the treatment of specific physical platform to generate the object code . Source code analysis technology is an important part of software testing , systems analysis and software development . In this paper, the structural features of G with technical background , analysis of the G internal segregations G front end , and as source code analysis system to construct technical ideas , source code analysis objectives and specific implementations. G is an open-source product , you can use the source code , parse and extract G front-end part ( source code analysis and physical platform-independent , so there is no need to use the back-end part of G ) , and access to the source code of the syntax -level analysis functions , on this basis, further generate semantic analysis diagram control flow diagram , class diagram , design -based front-end G C source code analysis system , and the system function is verified .