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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b12a5cee4778f63 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: GNAT & GCC performace (bad news) Date: 1999/12/03 Message-ID: <38479292.343828C4@mail.com>#1/1 X-Deja-AN: 556143534 Content-Transfer-Encoding: 7bit References: To: Harald.Schmidt@tomcat.de X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sunrise.ch X-Trace: news1.sunrise.ch 944214674 11464 195.141.231.162 (3 Dec 1999 09:51:14 GMT) Organization: sunrise communications ag Mime-Version: 1.0 NNTP-Posting-Date: 3 Dec 1999 09:51:14 GMT Newsgroups: comp.lang.ada Date: 1999-12-03T09:51:14+00:00 List-Id: The level of optimization is very important if you are using gcc, and could very well account for your 50%. With -O0 (the default) gcc generates easy to debug but quite inefficent code (look at the gcc docs). You really have to use at least -O1 if you want your comparison to be meaningful. And you have to suppress checks in Ada to compare with C.