From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116275 invoked by alias); 9 Jan 2019 15:13:11 -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 116262 invoked by uid 89); 9 Jan 2019 15:13:11 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=conceptually, admit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS 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: relay7-d.mail.gandi.net Received: from relay7-d.mail.gandi.net (HELO relay7-d.mail.gandi.net) (217.70.183.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jan 2019 15:13:08 +0000 X-Originating-IP: 193.248.54.187 Received: from [192.168.1.2] (lstlambert-656-1-266-187.w193-248.abo.wanadoo.fr [193.248.54.187]) (Authenticated sender: basile@starynkevitch.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 614D02000E; Wed, 9 Jan 2019 15:13:05 +0000 (UTC) Subject: Re: about header file parsing To: akrl Cc: dmalcolm@redhat.com, jit@gcc.gnu.org References: From: Basile Starynkevitch Message-ID: <85568212-cec8-f8c8-2941-8db5d19e2989@starynkevitch.net> Date: Tue, 01 Jan 2019 00:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-IsSubscribed: yes X-SW-Source: 2019-q1/txt/msg00020.txt.bz2 On 1/9/19 4:03 PM, akrl wrote: > Sorry I try to explain it better. > I was thinking to a gcc plugin (or potentially something else) that > given a C file produce the libgccjit code necessary to fill a context > with what is in the source file. That could not work in general, because C has macros (think of the `EOF` macro constant in ``) that have no equivalent in libgccjit. And in practice C macros are very important (and a lot of API for C are using macros, see also macros such as WIFEXITED in wait(2) on some Linux system). We have to admit that C and libgccjit are different "languages" (even if conceptually very close). And a C API is not exactly a set of "objects" that libgccjit can handle. Cheers -- Basile STARYNKEVITCH == http://starynkevitch.net/Basile opinions are mine only - les opinions sont seulement miennes Bourg La Reine, France