Skip to main navigation Skip to search Skip to main content

Retrieval method of static code information for multi-language

  • School of Computer Science and Technology, Harbin Institute of Technology

Research output: Contribution to journalArticlepeer-review

Abstract

There are many requirements for the multilanguage static information retrieval, and it is wasteful and complex to build specific front end for each language. So to meet the need and conquer the weakness we present a method based on GCC source code change to provide a uniform interface for retrieval. According to the static information type and the GCC inside mechanism, this method integrates the specific hook point with the GCC's internal functions to gather the needed. The details to be collected include: the type and function declaration, the statements traverse and the uniform multilanguage middle-representation. The reusability of this method reduces the duplicated cost of the construction for each language. The comparison experiments shows that this method can efficiently and robustly parse multilanguage and be directly applied to large-scale open source code to retrieve the static information.

Original languageEnglish
Pages (from-to)62-66
Number of pages5
JournalHarbin Gongye Daxue Xuebao/Journal of Harbin Institute of Technology
Volume43
Issue number3
StatePublished - Mar 2011
Externally publishedYes

Keywords

  • GCC compiler
  • Program middle-representation
  • Static code analysis
  • Static code information

Fingerprint

Dive into the research topics of 'Retrieval method of static code information for multi-language'. Together they form a unique fingerprint.

Cite this