WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] compile with -funit-at-a-time option of gcc

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] compile with -funit-at-a-time option of gcc
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 30 Jun 2005 09:04:42 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 30 Jun 2005 07:59:33 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D282447@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D282447@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 30 Jun 2005, at 08:21, Ian Pratt wrote:

This patch makes xen compiled with gcc option
-funit-at-a-time if supported. This option is available for
gcc 3.4 and upward, which reduces the .text binary size considerably.

I haven't come across this option before. What does it actually do?

Considers whole file at a time when doing optimisation. It's the default on gcc4 with -O2 and above. We probably don;t want to enable it before a general move to gcc4 as it does break stuff (albeit stuff that was buggy/broken already ;-) ). Adding another skanky CFLAG that will be defaulted anyway in future, to get the benefit of maybe subtly breaking Xen, doesn;t sound like a big win to me.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel