From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27463 invoked by alias); 9 Nov 2009 03:01:28 -0000 Received: (qmail 27311 invoked by uid 22791); 9 Nov 2009 03:01:27 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f211.google.com (HELO mail-bw0-f211.google.com) (209.85.218.211) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Nov 2009 03:01:23 +0000 Received: by bwz3 with SMTP id 3so3179258bwz.16 for ; Sun, 08 Nov 2009 19:01:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.156.217 with SMTP id y25mr1910412bkw.76.1257735681004; Sun, 08 Nov 2009 19:01:21 -0800 (PST) In-Reply-To: References: Date: Mon, 09 Nov 2009 03:01:00 -0000 Message-ID: Subject: Re: How to do executable individualization using optimization options ? From: Byoungyoung Lee To: Ian Lance Taylor Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00226.txt.bz2 Yes, that's what I want to do. As I mentioned in the subject, I'd like to realize s/w individualization via compiler optimization, and I still need to think of some more techniques. Thanks for your help. Regards, Byoungyoung Lee On Sun, Nov 8, 2009 at 4:36 AM, Ian Lance Taylor wrote: > Byoungyoung Lee writes: > >> If the optimization options provided in a different way, >> the same source codes would be compiled into different executables. >> >> In the different executables, >> the register allocation or instruction orders might be easily changed, >> but I think that's not that big change. >> What I'd like to do is to make their CFG different, while their impact >> on executing performance is reasonable. >> >> I'm reading through the compiler books and gcc internal documentations, >> but it's really hard for me to pin point what I really need to read >> and understand. >> >> So, my question is what kind of optimizing options in gcc could be >> used to do such jobs ? >> or would you recommend good references for this ? > > Sorry, I don't understand the question. =A0Are you asking what gcc > options will produce a different CFG? =A0If so, this question would be > better asked on gcc-help@gcc.gnu.org. =A0One answer is that you will get > a slightly different CFG from options like -funroll-loops. =A0In general > there are a number of options which could change the CFG. =A0But I'm not > sure why you are asking the question. > > Ian >