From owner-freebsd-current@FreeBSD.ORG Wed Jan 14 06:04:31 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33498106564A for ; Wed, 14 Jan 2009 06:04:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id DAF4B8FC0A for ; Wed, 14 Jan 2009 06:04:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so81995qwb.7 for ; Tue, 13 Jan 2009 22:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=K2rOZwYLNm2U8etz4XWNj17rY6d78Rgq4aH0lPcSQ/o=; b=iEFacBk9iuVyD5EcHXwgsdEwT4fYhBV3EY13/UCA0efOGhl4K3F7L28ubsfPeSN/Xz ReHbgXBJ0TCOiZUPBSOR64GRMflPddI2cxTUE1fi/vpwUHSxsZa+fxrAe04MfD5JR4x6 AzwnLZLsryTSRRyaXDcAQOe0DHDul0AKpruI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=G+BIzq3zokqh31RScEhCPbosfEtQgjyosChAW9JV4JaRopUXhQDXQyJaAu2c8spAfj 0wsAbRL42H0uzV3gYgAzmNTgJn7+neV/XprAP5/C6vyBugdtcsLzZ5ydP8M7lqUawb1w 2tmPfj9kYiBk31MD8Aadrc/Ef4dEQit+6Qk0A= Received: by 10.214.81.16 with SMTP id e16mr8672136qab.254.1231911740695; Tue, 13 Jan 2009 21:42:20 -0800 (PST) Received: by 10.214.81.13 with HTTP; Tue, 13 Jan 2009 21:42:20 -0800 (PST) Message-ID: Date: Wed, 14 Jan 2009 00:42:20 -0500 From: "Adrian Chadd" Sender: adrian.chadd@gmail.com To: "Maxim Sobolev" In-Reply-To: <496D64A0.1090309@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20090113044111.134EC1CC0B@ptavv.es.net> <20090113222023.GA51810@lor.one-eyed-alien.net> <496D1ED6.4090202@FreeBSD.org> <200901132356.40820.ken@mthelicon.com> <496D64A0.1090309@FreeBSD.org> X-Google-Sender-Auth: 49085c0b27735e9b Cc: freebsd-current@freebsd.org Subject: Re: Alternatives to gcc (was Re: gcc 4.3: when will it become standard compiler?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2009 06:04:31 -0000 2009/1/13 Maxim Sobolev : > Well, this is workaround not a solution. Sooner or later FreeBSD will hit > some principal limitation of the current compiler, like for example it was > in the old days of gcc 2.xx, when FreeBSD had stuck with version that was > outdated by few years resulting in inability to use any more or less modern > C++ code with the system compiler. Existing processors develop all the time > (SSE 4.2 for example) and the new architectures emerge (Cell for example), > so that it's just matter of time when it happens again. So have people actually done some tests with the latest gcc and the freebsd world/kernel and -demonstrated- a speedup with that? I'd be happy with a crappy but fast and standard compiler in /usr/src if it build the world and kernel and the kernel was within 5% or so of the hyper-optimised very-latest compiler. But then, I seem to have falled square in the "compilers can't do all the magic; stop writing crappy code" school who believes you should only need a magically awesome compiler for about 1% of your codebase, and the rest should just be well-written to start with. So I re-iterate. Why all of the discussion having the default compiler be something new and shiny, when those who need the performance gains can just install -that- compiler as a port and use that? Adrian