Authors:
Anne Marie Bogar
1
;
Damian M. Lyons
1
and
David Baird
2
Affiliations:
1
Department of Computer and Information Science, Fordham University, New York NY and U.S.A.
;
2
Bloomberg L.P., New York NY and U.S.A.
Keyword(s):
Software Engineering, Programming Languages, Multilingual Software, Call Graph Generation, Island Grammars, Software and Systems Quality.
Abstract:
Analysis of multilingual codebases is a topic of increasing importance. In prior work, we have proposed the MLSA (MultiLingual Software Analysis) architecture, an approach to the lightweight analysis of multilingual codebases, and have shown how it can be used to address the challenge of constructing a single call graph from multilingual software with mutual calls. This paper addresses the challenge of constructing monolingual call graphs in a lightweight manner (consistent with the objective of MLSA) which nonetheless yields sufficient information for resolving language interoperability calls. A novel approach is proposed which leverages information from a compiler-generated AST to provide the quality of call graph necessary, while the program itself is written using an Island Grammar that parses the AST providing the lightweight aspect necessary. Performance results are presented for a C/C++ implementation of the approach, PAIGE (Parsing AST using Island Grammar Call Graph Emitter)
showing that despite its lightweight nature, it outperforms Doxgen, is robust to changes in the (Clang) AST, and is not restricted to C/C++.
(More)