This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New C parser [patch]



On 25 Oct 2004, at 15.44, Joseph S. Myers wrote:


On Mon, 25 Oct 2004, Ziemowit Laski wrote:

I'm just curious as to why you think that writing a C parser from scratch is
easier than tweaking Mark's parser to handle C.

You have an interesting definition of "tweaking".

I might indeed, but I haven't offered one yet. :-)


Geoffrey Keating gave
an estimate of 6-9 man-years to merge the front ends making them handle
the present languages as fast as at present. This compares to 1 man-week
to write a functional C parser for the exact present language accepted
which also speeds up the compiler despite not having been profiled or
tuned for performance at all.

While I don't buy these time estimates (not both simultaneously, anyway), I do
agree that you would take a performance hit, at least in the short-term,
especially for plain C code.


Merging front ends provides only marginal maintenance benefits

That I buy even less than your time estimates. :-( But anyway, mine was just
a question, not an objection.


--Zem


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]