From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15905 invoked by alias); 1 Aug 2011 05:54:27 -0000 Received: (qmail 15890 invoked by uid 22791); 1 Aug 2011 05:54:25 -0000 X-SWARE-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yi0-f47.google.com (HELO mail-yi0-f47.google.com) (209.85.218.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Aug 2011 05:54:12 +0000 Received: by yib18 with SMTP id 18so3851058yib.20 for ; Sun, 31 Jul 2011 22:54:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.184.7 with SMTP id h7mr532179ybf.1.1312178051734; Sun, 31 Jul 2011 22:54:11 -0700 (PDT) Received: by 10.151.45.15 with HTTP; Sun, 31 Jul 2011 22:54:11 -0700 (PDT) Date: Mon, 01 Aug 2011 05:54:00 -0000 Message-ID: Subject: Can gcc do same work like VS2005 "/ORDER" options From: "Wu .Shao Lin" To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg00002.txt.bz2 Hi, GCC experts: =A0=A0=A0 I am playing with C, and have tried the -freorder-functions with __attribute__((hot)), it works some but the link only reorder the functions that in one object file range , Is there any way to ask link to reorder the functions in whole executive file range? =A0=A0=A0 Can I name the functions (C code) to other code segments (instead of .text by default)? Thanks & Best Regards, Shaolin