next up previous
Next: Gasta architecture Up: Gcc Abstract Syntax Tree Previous: Gcc Abstract Syntax Tree
Gasta Homepage: Home page

Introduction

We decide to use the abstract syntaxic graph (ASG) provided by gcc when using "-fdump-translation-unit" or "-fdump-ast-switch" because LCLint is released under GPL licence, and Gasta is also released under this kind of licence. Thus, we choose a compiler with a GPL licence and the natural choice is gcc. The option "-fdump-translation-unit" dumps a representation of the tree structure for the entire translation unit to a file whereas "-fdump-ast-switch provide one ASG for each function. Another advantage in using gcc is it's in constant evolution. Many developpers use it and propose many improvements.

So, we draw our tool on top of gcc and we designe it as shown in Figure 1. As you can see, Gasta can be split into four main parts: A parser, a visitor, a builder and an analyszer. Those parts of our project are explained in the architecture section. In the second section, we explain in more details which kind of analysis is done. And finally, we discuss about our future work.

Figure 1: Gasta architecture
\begin{figure}\center
\framebox{
\epsfysize=10cm
\epsfbox{figures/architecture.eps}
}\end{figure}


next up previous
Next: Gasta architecture Up: Gcc Abstract Syntax Tree Previous: Gcc Abstract Syntax Tree
Guillaume Thouvenin 2001-10-01