From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-fw-6001.amazon.com (smtp-fw-6001.amazon.com [52.95.48.154]) by sourceware.org (Postfix) with ESMTPS id 509413836641 for ; Thu, 26 May 2022 05:53:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 509413836641 X-IronPort-AV: E=Sophos;i="5.91,252,1647302400"; d="scan'208,217";a="206721555" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2c-388992e0.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP; 26 May 2022 05:53:22 +0000 Received: from EX13D07EUA002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-388992e0.us-west-2.amazon.com (Postfix) with ESMTPS id DA4A081B1C for ; Thu, 26 May 2022 05:53:20 +0000 (UTC) Received: from EX13D07EUA001.ant.amazon.com (10.43.165.228) by EX13D07EUA002.ant.amazon.com (10.43.165.207) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Thu, 26 May 2022 05:53:19 +0000 Received: from EX13D07EUA001.ant.amazon.com ([10.43.165.228]) by EX13D07EUA001.ant.amazon.com ([10.43.165.228]) with mapi id 15.00.1497.036; Thu, 26 May 2022 05:53:19 +0000 From: "Yitschak, Yehuda" To: "gcc-help@gcc.gnu.org" Subject: FDO for optimal linker map Thread-Topic: FDO for optimal linker map Thread-Index: AdhwxB3yfDnyjHRVS1mMYCr2un171w== Date: Thu, 26 May 2022 05:53:19 +0000 Message-ID: <76b462cb3dab454ca4382fa5eb7d9ae0@EX13D07EUA001.ant.amazon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.164.100] MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2022 05:53:33 -0000 Hello I am learned about GCC FDO capabilities but AFAICT it doesn't effect the fu= nction layout which the linker generates My intention is to use the feedback data to create an optimal function layo= ut to minimize I-cache misses. Meaning to group the most frequently accessed functions together and perhap= s even order them to utilize cache prefetch better. Is there anyway to achieve that in GCC ? Thanks a lot Yehuda