From owner-freebsd-questions@FreeBSD.ORG Sun Apr 25 19:41:57 2010 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 9726B106566C for ; Sun, 25 Apr 2010 19:41:57 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5.netcologne.de (smtp5.netcologne.de [194.8.194.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC628FC14 for ; Sun, 25 Apr 2010 19:41:57 +0000 (UTC) Received: from llea.celt.neu (xdsl-213-196-242-171.netcologne.de [213.196.242.171]) by smtp5.netcologne.de (Postfix) with ESMTP id A9B0440CA80; Sun, 25 Apr 2010 21:22:18 +0200 (CEST) Message-ID: <4BD49754.7070007@laposte.net> Date: Sun, 25 Apr 2010 21:26:12 +0200 From: =?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100415 SeaMonkey/2.0.4 MIME-Version: 1.0 To: FreeBSD questions References: <4BD3E923.9030606@rawbw.com> <87k4rvh0l8.fsf@upnet.gr> In-Reply-To: <87k4rvh0l8.fsf@upnet.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Leonidas Tsampros Subject: Re: Why system gcc that is 4.2.1 produces different code than gcc-4.2.1 compiled from sources? 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: Sun, 25 Apr 2010 19:41:57 -0000 Leonidas Tsampros wrote: > I'm pretty sure that a small difference in execution time does not mean > that the produced code is different. Actually, execution time of a process is very sensitive to the environment of this process. See for instance: http://www-plan.cs.colorado.edu/diwan/asplos09.pdf "We see that something external and orthogonal to the program, i.e., changing the size (in bytes) of an unused environment variable, can dramatically (frequently by about 33% and once by almost 300%) change the performance of our program." (The quotation is taken out of the article.) I learned about this in a message from Xavier Leroy to the OCaml mailing list: http://caml.inria.fr/pub/ml-archives/caml-list/2009/12/e261eeb95bec6c5a2791335c84234a05.en.html Cheers, Michaël