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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c3d0e99376a4f379 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 17 Aug 2007 09:24:56 +0200 From: Gautier User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Interested about number crunching in Ada References: <1187235764.909133.180650@19g2000hsx.googlegroups.com> <46c49e6e$1_6@news.bluewin.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.1.146.126 X-Original-NNTP-Posting-Host: 85.1.146.126 Message-ID: <46c54d1a$1_5@news.bluewin.ch> X-Trace: news.bluewin.ch 1187335450 85.1.146.126 (17 Aug 2007 09:24:10 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:1469 Date: 2007-08-17T09:24:56+02:00 List-Id: anon wrote: > As for F2A: > > Language converts are nice but in the GNU series they may add useless > code because of the number of steps take to convert the code from the > source to object code. > > An example: .. > GNAT -- to --> C then using GCC -- to --> asm > asm then using GCC -- to --> object <> Robert Dewar Ada Core Technologies (found in groups.google.com) > F2A -- to --> Ada then using GNAT -- to --> C > C using GCC -- to --> asm > asm then using GCC -- to --> object - The "step" asm to machine code in the object is trivial, asm is just a human-readable writing for the machine code; no transformation there. - The GNAT-to-C exists only in your imagination. - F2A is not a Fortran preprocessor for using Ada as the back end; you use it once and forget the Fortran code, and continue developing the Ada source. At the end, you have one step. Sorry... As for I/O, apart the LOW_LEVEL_IO you mention (never seen before!), the usual Text_IO, Direct_IO, Sequential_IO are perfectly compatible from Ada 83 through Ada 2005. Ada 95's Stream_IO works in Ada 2005 (would you expect the reverse ?). Conversely, a SGI Fortran has slightly different I/O than a Lahey Fortran and DEC/HP Fortran is still a bit different on that point. The situation is just the reverse that you imagine. As for HP Ada, I don't care about politics, only about performance :-). ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!