Font Size: a A A

Source Code Difference Analysis Based On Syntax And Integration Of Kernel Analysis Platform

Posted on:2017-03-11Degree:MasterType:Thesis
Country:ChinaCandidate:X LiFull Text:PDF
GTID:2348330566956676Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the increasing scale and the complexity of software system,analysing the source code of software system assumes even greater importance.Some large softwares such as Linux kernel,lack a unified development document because of the mass of developers.When developing a new kernel or upgrading a kernel,the changes of interfaces or drivers for the new kernel source code,which may not be appropriate for the original program,will make developers to conduct a new survey of different versions of the kernel.Manual analysis of the workload is heavy,for developers,may need to spend a lot of time.Therefore,developing a tool to analyse the difference of source code between different kernel versions and providing it to the developers has far-reaching significance and influence.In this paper,we first compare existing source code difference analysis methods and tools by analysing them and finding their characteristics and shortcomings.We designed and implemented a source code analysis tool named gccAnalyser on the base of Database-based online call graph tool based on RTL,which is developed in our laboratory,considering the design of difference analysis tool based on the source code of syntax tree.By combing compiler and an abstract syntax tree difference analysis tool.The gccAnalyser can not only according to the parameter specify the difference according to the parameters,but also analyse the differences in source code to the specified version of the Linux kernel name and function name,by improving the analysis tools based on differences of source of syntax tree.The users can obtain useful information of the differences more intuitive and easier.On the basis of analysing the scripts of platform function deployment and carring on the unification consummation and the function explanation to them,other developers can deploy the kernel analysis platform more conveniently and efficiently in the future.Finally,the tool is integrated with the Linux kernel analysis platform.The platform users specify the parameters to be compared,and the results of the differential analysis are displayed on the platform.This way can enrich the platform function and is convenient for users.Through the analysis of the related scripts of gccAnalyser tool and operating procedures to achieve process of demonstration,it is verified that this tool developed in the laboratory analysis of the Linux kernel platform is available,and it is a flexible tool used to analyze and show differences of Linux kernel source codes.
Keywords/Search Tags:Kernel Analysis, DBCG-RTL, Grammar Difference, gccAnalyser
PDF Full Text Request
Related items