Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 66857 invoked from network); 17 Oct 2005 09:55:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 09:55:09 -0000 Received: (qmail 13891 invoked by uid 500); 17 Oct 2005 09:54:37 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 13728 invoked by uid 500); 17 Oct 2005 09:54:35 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 12821 invoked by uid 99); 17 Oct 2005 09:54:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 02:54:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tanujmathur@gmail.com designates 72.14.204.204 as permitted sender) Received: from [72.14.204.204] (HELO qproxy.gmail.com) (72.14.204.204) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 02:52:17 -0700 Received: by qproxy.gmail.com with SMTP id o38so126988qbe for ; Mon, 17 Oct 2005 02:51:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rqE/COmG94v/6uTfIss44sXJy7hwdxH4OIvZY9mVc0LhRA6J5GeHdJFydrs4YV8J1Jos0jw65/2PqcjHTWEkRXt4XWXtClIryYdIHJgGWxV7VHjdG875UTVwVJiDDvcAlPxKvU9j1AdjwyjCeSn8GHZq5MrzJ4bAdZj1ceaCcm8= Received: by 10.65.163.4 with SMTP id q4mr1241289qbo; Mon, 17 Oct 2005 02:51:55 -0700 (PDT) Received: by 10.64.180.10 with HTTP; Mon, 17 Oct 2005 02:51:55 -0700 (PDT) Message-ID: Date: Mon, 17 Oct 2005 15:21:55 +0530 From: Tanuj Mathur To: harmony-dev@incubator.apache.org, enrico.migliore@fatti.com Subject: Re: C compilers comparison: MSVC vs GCC vs DevCpp In-Reply-To: <43536F92.6020706@fatti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43536F92.6020706@fatti.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I can confirm Jerome's results. I tried out the test with 3 different optimization options (Optimize for size, for speed, and 'maximum optimizations') for the MSVC 7.1 (2003) compiler. In all the cases, the running time was 0 seconds. When I compiled and ran the code with no optimizations, I got a running time of 3.1090 seconds. For a more comprehensive test of ICC, GCC and MSCV, take a look at the following page: - Performance Comparison of Java/.NET Runtimes (Oct 2004) (http://www.shudo.net/jit/perf/) Found the link on the Harmony wiki, :) under the JVM Benchmarks section (http://wiki.apache.org/harmony/JVM_Benchmarks). The test pits GCC 3.4.2 against ICC 8.1 and MSVC 7.1. So maybe we should re-run the tests in two months, when we have MSVC 8 to test against GCC 4.0.2 and ICC 9. ;) Regards, Tanuj On 10/17/05, Enrico Migliore wrote: > Jeroen Frijters wrote: > > >Enrico Migliore wrote: > > > > > >> the code is a simple function that gets called 300000000 times. > >> > >> > > > >This is a flawed test. Your code doesn't actually do anything, so the > >function can be optimized away entirely and this is in fact was MSVC 7.1 > >does ("the test lasted for 0.0000 seconds") > > > >Regards, > >Jeroen > > > > > > > > > > > Hi Jeroen > > to make an exhaustive comparison of the three tool chains I certainly > need a test suite. > > In this simple test, I just wanted to see how the compilers build up the > stack frame of function calls, > and consequently how fast is the context change. > > Enrico > >