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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c32f54b2230c68d7 X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Compilers for VAX Was: Ada version of C's 'static' Date: 1999/08/09 Message-ID: <37AF1F9C.8BA13C43@averstar.com>#1/1 X-Deja-AN: 510741795 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: <7n03us$862$1@nnrp1.deja.com> <3798EDE9.90B9623B@averstar.com> <1999Aug6.130439.1@eisner> <7on41u$3rf@dfw-ixnews19.ix.netcom.com> Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-08-09T00:00:00+00:00 List-Id: Richard D Riehle wrote: > > In article , > Robert A Duff wrote: > > ... deleted a bunch of stuff ... > > > ... The main point of having a C-generating Ada > >compiler is to make it easy to port -- but it's not zero work. > > Not easy. Not necessarily safe. I just discovered that another > favorite language that emits intermediate C code fails to detect > the famous C "integer overflow" problem at run-time. Our compiler correctly handles integer overflow, despite the fact that it is generating ANSI-C. And Richard is correct that this is not trivial to get right and/or efficient. We added optimizations into our front end to minimize the amount of extra code generated to handle overflow properly. > ... Even though > C is sometimes thought of as a "universal assembler" suitable for > "C Pass" compilers, one needs to ensure that the rigorous demands > of Ada are still satisfied. I guess conformance (ACVC) tests are > still useful. Yes, Dr. Dewar, I realize that conformance testing > is not completely reliable, but it is better than a ... (fill in > your favorite metaphor). > > Richard Riehle > richard@adaworks.com > http://www.adaworks.com > -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA