From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server322.com (server322.com [192.252.151.10]) by sourceware.org (Postfix) with ESMTPS id 8B7473857C52 for ; Thu, 1 Apr 2021 10:22:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8B7473857C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=strikr.io Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=saifi@strikr.io DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=strikr.io; h=date:from :reply-to:to:subject:in-reply-to:message-id:references :mime-version:content-type; s=dkim; bh=mmS0GaXfgxbChP8+b9FhcxSYD Cp18iMB5yxMMoFRcNg=; b=LKCCyk2CSnyCcg0SzfHW5nHd+D1CfCyAdsFBWEdEw e5XiMaowuJJVb9sdhhcylrgnbYG1oE8ASq6rh7oXIdprus4Ad8BMNs+GKx5oNaYE wJM+V+b+jOwzOh/hEfvx9uY7lC2Z2eLJtMFYlmBdiPifjn+pyWdPIVsjFGp7LBXY Sk= Received: (qmail 33631 invoked by uid 503); 1 Apr 2021 10:22:49 -0000 Received: from unknown (HELO gladiator) (pop-before-smtp-bcr@49.207.196.206) by 192.252.151.58 with ESMTPA; 1 Apr 2021 10:22:49 -0000 Date: Thu, 1 Apr 2021 11:25:09 +0100 (BST) From: SAIFI Reply-To: Saifi To: gcc@gcc.gnu.org Subject: Re: GCC Plugin introduction In-Reply-To: Message-ID: <1d74f99-8714-c8f9-da7-869013d935f4@strikr.io> References: <4b099fce-df0c-34dd-644e-fec2042e568e@santannapisa.it> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 10:22:52 -0000 On Tue, 30 Mar 2021, SAIFI wrote: > On Mon, 29 Mar 2021, Gabriele Serra wrote: > >> >> I have written a very basic article on GCC Plugins (how to build a plugin >> from the ground, some info on APIs, and how to instrument code). The >> material is based on GCC 9. The code is fully documented and working. >> >> https://gabrieleserra.ml/blog/2020-08-27-an-introduction-to-gcc-and-gccs-plugins.html >> > > Gabriele thanks for sharing the detailed write up. > > in the spirit of 'gcc-help', can you please share pointers as to how one can > profile C++ code using GCC plugins ? > Gabriele please see Stephen Friedl's blog posts on GCC plugins https://stephanfr.com/category/gcc/ and git repo https://github.com/stephanfr/GCCPlugin Have you had a chance to see these posts during your literature survey ? Any thoughts ? warm regards Saifi.