Ada, treelang needs to be converted to --enable-mapped-location
Zack Weinberg
zack@codesourcery.com
Wed Oct 6 18:52:00 GMT 2004
Geert Bosch <bosch@gnat.com> writes:
> On Oct 6, 2004, at 11:52, Zack Weinberg wrote:
>> Do you have the same complaint, then, about hashtab.c? What about
>> xmalloc?
>
> No, because the front ends do not need to use these files. Indeed,
> GNAT uses its own hash tables and allocation strategies. It would be
> different if you'd require front ends to store any identifiers it
> reads using hashtab.c.
This is news to me; I had thought that hashtab.c was required. I'm
sure I don't have to explain to you why duplicated code is bad; and I
don't see why Ada's packaging requirements prevent you from picking up
C modules which have, after all, been carefully coded to be
independent of the rest of GCC. Such as hashtab.c and line-map.c.
I'd also point out that, while proper interface boundaries are good,
sharing data structures is also good. Any time you have two data
structures which are isomorphic representations of the same thing, and
logic to translate between them, that's wasting time and space which
could be saved by sharing the data structure.
zw
More information about the Gcc
mailing list