From owner-freebsd-questions@FreeBSD.ORG Wed Jun 20 04:57:39 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E46C3106566C for ; Wed, 20 Jun 2012 04:57:38 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 703518FC14 for ; Wed, 20 Jun 2012 04:57:38 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so6975328wgb.31 for ; Tue, 19 Jun 2012 21:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mM55upytplpZL8I1EJj33StXHh3RQJP+bmsAjcIVHi4=; b=MsDE09uG2wIot0QZDHfSDUUJIczXKy0Dd/8s6ZPCp7nIvS2gXTWsOomS5CrLdtaYdC XuNImmPt4DDrvCzRfrbvk9o8sRQ/kGeRQwLbBn+4YaEwKB/yAr0DbYM8RpX8YxO2Kalp M5o3U5sdYGgitlxmg0ML/muNAkkzkIibhExP1gAheAfIoB0kMkZAmSnYgDFB6Hr/amhi DJbia2XOUwQ0jOLW/5SU2A0HR+pp71XRHqPp02b5Uznt6FglQkQI7+km5x8+h2dFVIDa 6fXivhUmJpk7a6UpurJ18lzxazjGf8cy1Q/gjtdSs8Q8+pJ25A6MuL7JaieaWlqrVR0j hzSg== MIME-Version: 1.0 Received: by 10.216.204.88 with SMTP id g66mr11695967weo.79.1340168257053; Tue, 19 Jun 2012 21:57:37 -0700 (PDT) Received: by 10.223.88.155 with HTTP; Tue, 19 Jun 2012 21:57:37 -0700 (PDT) In-Reply-To: References: <402199FE-380B-41B6-866B-7D5D66C457D5@lpthe.jussieu.fr> <854D02B1-CA89-4F5E-8773-DB05F2868D74@lpthe.jussieu.fr> Date: Tue, 19 Jun 2012 23:57:37 -0500 Message-ID: From: Adam Vande More To: Wojciech Puchar Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Michel Talon , freebsd-questions@freebsd.org Subject: Re: CLANG vs GCC tests of fortran/f2c program X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2012 04:57:39 -0000 On Tue, Jun 19, 2012 at 11:26 PM, Wojciech Puchar < wojtek@wojtek.tensor.gdynia.pl> wrote: > i tested your test program, and in that case, contrary to testing common > unix programs, difference is far higher showing gcc superiority. > > i did this test with FreeBSD 9 supplied clang and FreeBSD 9 supplied gcc. > > clearly shows that clang actually cannot do more agressive optimization > (that trades space) at all, and at -O2 is far slower. > Yes, Clang in general produces slower binaries than gcc. Is that in dispute or something? Or is this just repetition in case we didn't hear you the first time? Try thinking of the transition as a step back to take many steps forward. Or just change your compiler. Complaining on this list is definitely the wrong place though. Those who have offended your sensibilities by moving to Clang don't live here. People have already done nice work on the benchmarks: http://blog.vx.sk/archives/25-FreeBSD-Compiler-Benchmark-gcc-base-vs-gcc-ports-vs-clang.html -- Adam Vande More