From owner-freebsd-questions@FreeBSD.ORG Tue Jun 19 17:53:22 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 82BD51065689 for ; Tue, 19 Jun 2012 17:53:22 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id C8E1A8FC0C for ; Tue, 19 Jun 2012 17:53:21 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q5JHrJPR008253; Tue, 19 Jun 2012 19:53:20 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q5JHrC23008250; Tue, 19 Jun 2012 19:53:19 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 19 Jun 2012 19:53:12 +0200 (CEST) From: Wojciech Puchar To: Michel Talon In-Reply-To: <402199FE-380B-41B6-866B-7D5D66C457D5@lpthe.jussieu.fr> Message-ID: References: <402199FE-380B-41B6-866B-7D5D66C457D5@lpthe.jussieu.fr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Tue, 19 Jun 2012 19:53:20 +0200 (CEST) Cc: David Brodbeck , FreeBSD Questions Subject: Re: Why Clang 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: Tue, 19 Jun 2012 17:53:22 -0000 > lilas% clang -v > Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) > Target: x86_64-apple-darwin11.4.0 > lilas% clang -O4 test.c -lf2c > lilas% time ./a.out > ... > > real 0m2.359s > user 0m2.341s > sys 0m0.003s > > lilas% /usr/local/bin/gcc -v > ? > gcc version 4.6.1 (GCC) > > lilas% /usr/local/bin/gcc -O3 test.c -lf2c > lilas% time ./a.out > ? > > real 0m1.241s > user 0m1.234s > sys 0m0.003s So gcc actually improved. Can you compare the execution speed of latest gcc vs. latest clang. thank you i compared FReeBSD 9 supplied gcc with FreeBSD 9 supplied clang.