From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78017 invoked by alias); 18 Dec 2017 10:30:53 -0000 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 Received: (qmail 78001 invoked by uid 89); 18 Dec 2017 10:30:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=HX-HELO:sk:mail-vk, H*c:alternative, H*F:D*dz X-HELO: mail-vk0-f49.google.com Received: from mail-vk0-f49.google.com (HELO mail-vk0-f49.google.com) (209.85.213.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Dec 2017 10:30:50 +0000 Received: by mail-vk0-f49.google.com with SMTP id y187so9175498vkd.2 for ; Mon, 18 Dec 2017 02:30:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ud28l5TDqYhDVrODY4CFUY4j+vl/iBtfnN+c/ql6Ih0=; b=rSzh7BDi+u9jxUWaN8crOZKzprohO+ZLin6+QzQ+O1QoICnBUYbWA8ESgu764+ROzu AyGGnYZvMO6H9B56Br7C0SxzmiPaTbBdx3Dg3hodMMV2uAMEksmtBGoRWYgdrX5AZF/w Rgb7UvBe+PhXlfsqMtBAnVn+iECQIPElzM9Kf6Zg/w3+DZTIxYCykvsQvevnycMkM/u2 YY2Nv/RZs3Marhp84ea74s4onJTSzp8sp+DVQd2r/TvHxSAMn9jeYdWpV60awi+rU8L2 DiKxB/aXgvzY5lsvYpFT0Dmrogc+L7lBW5aN71IflwHAj0EfLZLfRgqlA8BSMH+8GyZt th5w== X-Gm-Message-State: AKGB3mJ3K6WvIBSh6X4d5SKaYt46SZGWDqDhQvs/SZBOvD8Fb9RFzwnx 0xVXftbswAGllpkdN9+T+uNW7/768Xy0H5hGUw8Woc9L X-Google-Smtp-Source: ACJfBotpQhNEONICn+ITjLmTGncxjzUjzdVhQtU42gpq9WDTxNaQ6Is+UgYUypLwmLpmxVg0mjTb+yc4+QLbVD2RrzM= X-Received: by 10.31.109.7 with SMTP id i7mr21349230vkc.196.1513593048388; Mon, 18 Dec 2017 02:30:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.76.83 with HTTP; Mon, 18 Dec 2017 02:30:47 -0800 (PST) From: HEBBAL Yacine Date: Mon, 18 Dec 2017 10:30:00 -0000 Message-ID: Subject: Load and parse RTL from textual dump files To: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-12/txt/msg00101.txt.bz2 Hello, In one of my projects, I need to determine automatically what are the names and types of data fields manipulated by functions in binary code of a given program (e.g. Linux kernel). I found that RTL dumps contains most of information I need in a form very close to the one of the binary code. For this end, I need to parse generated RTL expressions in order to extract operands properties. Is it possible to load and parse RTL expressions from textual dump files using existing code in GCC ? Thanks