From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.88.214.163.120!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Why are Ada compilers difficult to write ? Date: Wed, 20 Jun 2018 00:01:01 +0200 Organization: JSA Research & Innovation Message-ID: <87tvpy5tcy.fsf@jacob-sparre.dk> References: <584564c2-9f64-4965-b045-535cdaf899c0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: franka.jacob-sparre.dk; posting-host="88.214.163.120"; logging-data="628"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:h0HbbbubCViG5N6aD9P/aIIimOY= Xref: reader02.eternal-september.org comp.lang.ada:53175 Date: 2018-06-20T00:01:01+02:00 List-Id: Vincent writes: > I have often heard that Ada compilers where expensive because they are > very difficult to write, compared to Pascal or C ones. So my question > is : what in the Ada language poses problem to a compiler ? What are > the challenges ? Where can I find documentation about that ? Supposedly (I have never written an Ada compiler), one of the hard parts is to get overload resolution correct. I can imagine that handling of accessibility of anonymous access types (3.10.2?) can be a challenge as well. There is also some work in handling explicitly specified record layouts correctly, but I don't think it can be much worse than a special case of packed records. And finally, I suspect the fact that there is an actual validation test suite makes it hard to get away with claiming that something is an Ada compiler, if it doesn't implement the whole language. Greetings, Jacob -- "Three can keep a secret if two of them are dead."