From owner-freebsd-ports@FreeBSD.ORG Fri Apr 8 07:15:54 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B3DD16A4CE for ; Fri, 8 Apr 2005 07:15:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DAA943D4C; Fri, 8 Apr 2005 07:15:54 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j387Fp4g059603; Fri, 8 Apr 2005 07:15:51 GMT (envelope-from davidxu@freebsd.org) Message-ID: <42562FC3.8040704@freebsd.org> Date: Fri, 08 Apr 2005 15:16:19 +0800 From: David Xu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Francois Tigeot References: <425564D9.5050504@LogicX.us> <4255DC88.6060608@freebsd.org> <4255E04B.6020601@LogicX.us> <4255E43C.8010804@freebsd.org> <20050408064122.GC45371@aoi.wolfpond.org> In-Reply-To: <20050408064122.GC45371@aoi.wolfpond.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Mike Schroll cc: ports@freebsd.org Subject: Re: FreeBSD Port: subversion-1.1.3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 07:15:54 -0000 Francois Tigeot wrote: >On Fri, Apr 08, 2005 at 09:54:04AM +0800, David Xu wrote: > > >>I heard only -O works, -O2 does not work, -Os sometimes is a higher >>optimization >>level than -O2. >> >> > >AFAIK, -Os is only a subset of -O2. > >-Os only includes the -O2 optimisations which don't increase code size; >it gives generally better performance than -O2 due to a better cache >footprint. > >I have found this particularly true when using VIA C3 processors. > > > According to gcc manual: -Os Optimize for size. This enables all -O2 optimizations that do not typically increase code size. It also performs further op- timizations designed to reduce code size. So the options are overlapped, and also each option has its own optimizations, it should be treated that both -Os and -O2 have dangerous optimizations. David Xu