From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14788 invoked by alias); 8 Jan 2019 10:51:02 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 14653 invoked by uid 89); 8 Jan 2019 10:51:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*r:user, noticed, HImportance:Normal, HContent-Transfer-Encoding:8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mx.sdf.org Received: from mx.sdf.org (HELO mx.sdf.org) (205.166.94.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Jan 2019 10:51:00 +0000 Received: from mx.sdf.org (ol.freeshell.org [205.166.94.20]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id x08AosHf005035 for ; Tue, 8 Jan 2019 10:50:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sdf.org; s=default; t=1546944657; bh=vZIvHP9kl+l+K5k2+ZwLRO3a/OoDbIYCK/5z1sSwtHg=; h=Date:Subject:From:To; b=fbieTkvmggOXf8esTgrKgMmRiNKqfbpuwfV/5na9XUAuk4ibwmL36p1gNS1rkpljj gTJqfcgFl6ab4JCJnlDQUPV65uuT3FZhDgJS3PrPpSpXZzsaandD2aGF8ez1/5VBA6 qC/jy+o1WoByMJr7QBgWRXWykwq8+fc1dy1rg75E= Received: from 217.140.106.37 (SquirrelMail authenticated user akrl) by mx.sdf.org with HTTP; Tue, 8 Jan 2019 10:50:54 -0000 Message-ID: <0511991f924b445cad0467ad28fc8f45.squirrel@mx.sdf.org> Date: Tue, 01 Jan 2019 00:00:00 -0000 Subject: about header file parsing From: akrl@sdf.org To: jit@gcc.gnu.org User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-IsSubscribed: yes X-SW-Source: 2019-q1/txt/msg00008.txt.bz2 Hi all, I have a basic question. Is there a way to ask libgccjit to parse a conventional .h file? Or alternatively is there a way to have an header file parsed and converted in the equivalent libgccjit api calls? I ask this because I noticed that, if you jit some code that have to inter-operate with non jitted code, maintaining two duplicated definitions of all data structures can be quite painful if these are not trivial. Alternatively what's the suggested work flow? Best Regards Andrea