From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3020 invoked by alias); 31 Aug 2009 16:18:36 -0000 Received: (qmail 3011 invoked by uid 22791); 31 Aug 2009 16:18:35 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SARE_SUB_OBFU_Q1 X-Spam-Check-By: sourceware.org Received: from mail-iw0-f171.google.com (HELO mail-iw0-f171.google.com) (209.85.223.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Aug 2009 16:18:29 +0000 Received: by iwn1 with SMTP id 1so1928521iwn.0 for ; Mon, 31 Aug 2009 09:18:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.121.6 with SMTP id f6mr5951013ibr.53.1251735507228; Mon, 31 Aug 2009 09:18:27 -0700 (PDT) In-Reply-To: <15727b460908281412u3334d7fbrc527be0dde42e62f@mail.gmail.com> References: <15727b460908111703l682ab204l39700c8bfde50577@mail.gmail.com> <15727b460908281412u3334d7fbrc527be0dde42e62f@mail.gmail.com> Date: Mon, 31 Aug 2009 19:06:00 -0000 Message-ID: <15727b460908310918y16f59adfv97a8936bde7611a7@mail.gmail.com> Subject: Re: [gcc-in-cxx] replacing qsort with std::sort From: =?ISO-8859-1?Q?Pedro_Lamar=E3o?= To: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00566.txt.bz2 2009/8/28 Pedro Lamar=E3o : > I have not yet made complete size and execution speed measurements, thoug= h. > I've run the test suite and there are some failures; I think many of > them are not regressions when compared with a pure build with C++. Comparing trunk -r151160 and trunk -t151160 --enable-build-with-cxx + patches, these are the sizes of xgcc and g++ before strip: [psilva@joana obj]$ ls -lh gcc/xgcc gcc/g++ -rwxrwxr-x. 1 psilva psilva 481K Ago 31 12:58 gcc/g++ -rwxrwxr-x. 1 psilva psilva 477K Ago 31 12:58 gcc/xgcc [psilva@joana obj]$ ls -lh ../../std_sort/obj/gcc/xgcc ../../std_sort/obj/gcc/g++ -rwxrwxr-x. 1 psilva psilva 491K Ago 31 12:33 ../../std_sort/obj/gcc/g++ -rwxrwxr-x. 1 psilva psilva 487K Ago 31 12:33 ../../std_sort/obj/gcc/xgcc and after strip: [psilva@joana obj]$ ls -lh gcc/xgcc gcc/g++ -rwxrwxr-x. 1 psilva psilva 221K Ago 31 13:08 gcc/g++ -rwxrwxr-x. 1 psilva psilva 218K Ago 31 13:08 gcc/xgcc [psilva@joana obj]$ ls -lh ../../std_sort/obj/gcc/xgcc ../../std_sort/obj/gcc/g++ -rwxrwxr-x. 1 psilva psilva 219K Ago 31 13:08 ../../std_sort/obj/gcc/g++ -rwxrwxr-x. 1 psilva psilva 216K Ago 31 13:08 ../../std_sort/obj/gcc/xgcc Both configurations are basically like this: [psilva@joana obj]$ gcc/xgcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=3D/opt/gcc-in-cxx --disable-bootstrap --enable-checking --enable-shared --enable-threads=3Dposix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=3Dc,c++ Thread model: posix gcc version 4.5.0 20090828 (experimental) (GCC) -- P.