

|
 |
| Programming > Compilers > Re: Popularity ... |
|
| << Topic |
< Post |
Post 6 of 14 Topic 2372 of 2534
|
Post > |
Topic >> |
Re: Popularity of compiler tools, was LRgen
by Tegiri Nenashi <TegiriNenashi@[EMAIL PROTECTED]
>
Apr 8, 2008 at 01:13 PM
| On Apr 6, 8:25 am, an...@[EMAIL PROTECTED]
(Anton Ertl)
wrote:
> - Finally, many compiler writers seem to dislike tools (or maybe none
> of the tools are good enough or something).
>
> In particular, while I know of several tools for instruction
> selection using tree parsing, none of them seems to be widely-used;
> many compilers use hand-written instruction selectors, and of those
> where I have heard that they use generated tree-parsing instruction
> selectors, the generator was developed or extended in-house.
>
> One explanation I have heard is that the compiler writers don't like
> to make themselves dependent on a tool that may go away. OTOH, gcc
> reverted from using bison-generated parsers to hand-written ones (at
> least for C++ and C), and I very much doubt that the future of bison
> was the reason for that.
>
> Maybe some other posters can provide additional insights into the use
> or non-use of compiler tools and the reasons for this.
IMO there is not enough added value. Comparing writing parsing engine
from scratch vs. using off the shelf product I always prefer the
former. When chasing bugs it is much easier to find them in your own
code than being at the mercy of the tool owner. Next I find the whole
code generation idea ridiculous. I simply refuse to believe a code
generator can output a quality product. On large size grammar it can
easily generate huge methods that could overflow JVM method size (I
experienced with ANTLR). Then there limitations on what kind of
grammar a parser engine can accept, e.g. no left recursion, no
ambiguity, etc. This is totally inacceptible: a grammar is a
declarative specification of the language. Making a particular parser
engine happy does not warrant tinkering with it.
Within a wider perspective I feel a general failure of parser
technology to deliver a user friendly product. This is why we have
horrors of XML filling the void.


|
14 Posts in Topic:
|
"Marcel Satchell&quo |
2008-03-28 06:59:11 |
|
"Paul B Mann" & |
2008-03-31 02:35:38 |
|
Hans-Peter Diettrich < |
2008-04-01 10:32:26 |
|
anton@[EMAIL PROTECTED]
|
2008-04-06 15:25:04 |
|
Jason Evans <joevans@[ |
2008-04-07 08:24:11 |
|
Tegiri Nenashi <Tegiri |
2008-04-08 13:13:38 |
|
Hans-Peter Diettrich < |
2008-04-11 15:57:04 |
|
idbaxter@[EMAIL PROTECTED |
2008-04-11 10:52:35 |
|
Tegiri Nenashi <Tegiri |
2008-04-11 17:00:09 |
|
Walter Banks <walter@[ |
2008-04-11 09:28:14 |
|
wclodius@[EMAIL PROTECTED |
2008-04-11 22:09:16 |
|
Ian Lance Taylor <ian@ |
2008-04-12 08:28:56 |
|
Ian Lance Taylor <ian@ |
2008-04-12 13:06:06 |
|
"Derek M. Jones" |
2008-04-12 23:02:28 |
|
Post A Reply:

|
|
|
|