On 24/01/13 20:18, Diego Novillo wrote:
On Thu, Jan 24, 2013 at 3:11 PM, Alec Teal <a.t...@warwick.ac.uk> wrote:
That is a need that g++ cannot currently satisfy. With plugins, one
could do something along those lines, but they are heavier, and are at
the mercy of the full compiler. Additionally, g++ has very low
fidelity wrt the input program; it breaks down the original C++ input
almost immediately.
I don't quite follow, as opposed to? (Sorry if dumb question)
As opposed to an AST that is a very close representation of the
original C++ program. Such that if you pretty printed that AST, you'd
get something that resembles the original program very closely.
I don't really know about GCC and how it parses C++ but could you not
just embed more meta-data in GCCs AST? Or even the tokens themselves? or
do the two methods mix like oil and water and there really is no
compromise that doesn't have two loosers?
Alec
Diego.