Font Size: a A A

C++ Source Code Analysis System's Research And Design Based On G++ Front End

Posted on:2011-06-09Degree:MasterType:Thesis
Country:ChinaCandidate:L J XinFull Text:PDF
GTID:2178360305985241Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
GCC is the GNU's flagship product,which is also the world's heavy weight open-source products, most of the open-source products are based on this compiler.GCC is a compiler collection,including the C++ compiler which is G++.GCC compiler divides into front-end and back-end structurally,front-end is responsible for the language processing, while back-end is responsible for producing the specific physical platform's target code.Source analysis's technology is an important component of software testing,system analysis and software development.This article utilizes G++(GCC) feature, analyzes G++'s internal implementation,proposes technical ideas that is to separate G++front-end and construct the source code analysis system based on G++,discusses source code analysis's target and specific implementations.G++ is open source product, we can directly use its source code,we get the source code syntax-level analysis capabilities through the analysis and extraction of G++ front-end part (due to the source code analysis and physical platform-independent, so we don't use the back-end part of the G++), on this basis, we generate control flow graph, class graph and other semantic analysis graphs and design one C++source code analysis system based on G++front-end, at last,we verify system functionality.
Keywords/Search Tags:open-source products, G++ front-end, source code analysis, semantic analysis graphs
PDF Full Text Request
Related items