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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1d575f572a099528 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-01 12:07:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.freenet.de!not-for-mail From: "Heiko Hamann" Newsgroups: comp.lang.ada References: <3c08314d$0$158$9b622d9e@news.freenet.de> <9uau3a$79113$1@ID-25716.news.dfncis.de> Subject: Re: What is faster Ada or C? Date: Sat, 1 Dec 2001 21:09:41 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <3c093895$0$160$9b622d9e@news.freenet.de> NNTP-Posting-Host: 213.6.138.82 X-Trace: 1007237270 news.freenet.de 160 213.6.138.82 X-Complaints-To: abuse@freenet.de Xref: archiver1.google.com comp.lang.ada:17286 Date: 2001-12-01T21:09:41+01:00 List-Id: "Nick Roberts" schrieb im Newsbeitrag news:9uau3a$79113$1@ID-25716.news.dfncis.de... > What might be a practical approach to getting more speed would be to use > assembly for the critical bits, and a higher level language for the rest. > I guess you've considered this (?). Yes, I considered this - but only theoretical ;-) because I can't do this. Anyway I heard that good compilers produce much better assembler code than humans (?). > Which Ada compiler do you use (and what is the target machine)? I use GNAT. I am working on a AMD Athlon and Win98. >Have you tried turning off checks (using the Suppress pragma)? I'd be > interested to know if that made any difference! Well, _any_ difference? Hey, this is unbelievable! The difference between the program compiled with standard options and the program compiled with -gnatp and -O3 is terrific. The acceleration is about 70%! The new compilation needs only about 1/4 of time the old one needed. I can't believe it. The new program is about 1/5 smaller than the old one. I thank you very much. I never thought that might make such a great difference. I guess I will never use standard options of compilers any more in future :-) Bye, Heiko.