From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 341993857C4F for ; Wed, 9 Sep 2020 02:50:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 341993857C4F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=daurnimator.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=master@daurnimator.com Received: by mail-wr1-x436.google.com with SMTP id c18so1210046wrm.9 for ; Tue, 08 Sep 2020 19:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daurnimator.com; s=daurnimator; h=mime-version:from:date:message-id:subject:to; bh=s2iiEN0R4Vqq6wtTZGoXtwO/xTChhhJCNLoDLDqaoWw=; b=Q9/c8+v6NhUUwWJx0JkizD18Zn3OVAsd8AtibVpE9WHzRu/rJTocX5zfR3SceJjwbZ E9TfG5XyGcG4f8puAQPtdsexlK4KJeMJabOHresHOkwO74t9njG/4SZhnkUQGGGhbNb2 UJLB5w6oeU5t2f0AIFv2o6reXZiqCuFsqHIWg= 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=s2iiEN0R4Vqq6wtTZGoXtwO/xTChhhJCNLoDLDqaoWw=; b=VXJOarBkulLsc3ys4fYsibhPG3HOOBJDFeduK2zsz9smZU2i5tyXIM5hhwfww1twds //RnxHkl33EPadLmpS/16sQkW6In6shbsaK/9VUVI9xrtf6qTqifTdPewvIDTKFzEirp A9JOyDO+85WjjdLYiPmYXuYuGSrheg1TpbnUGnA4UB8cgMfly3ttn7lsfaEJJB7u765j R0cXHfoWD2UqdzwffrRPaMhrRbZT8OQ7b498rTDwaMqpWWvBrCjb6GWynOp0Shikin6T O8mNsAg+FkvKjXHHPJtB54D9rhpaB8JQd5hiAsCFxS9TV0kfd6fIAOG+fUvZjFe6wkgz AToQ== X-Gm-Message-State: AOAM531v1bj4kCRKZBHGlvqiI7UQbfLk5J1lKsUoSXEhihgbR6oowAV8 Wu9Q7WFlYp93VZaObR2AZqn+JDvj5apRR4t7qF0qzw== X-Google-Smtp-Source: ABdhPJzcy7YrWih13Ex2vaEEv3BL/185nO7scmv9snC4E5YjtZM1K4hT81I6LFIYV0NorfthTUhXK7lTKRE7VC8DwKE= X-Received: by 2002:a5d:630a:: with SMTP id i10mr1338084wru.137.1599619853242; Tue, 08 Sep 2020 19:50:53 -0700 (PDT) MIME-Version: 1.0 From: Daurnimator Date: Wed, 9 Sep 2020 12:50:42 +1000 Message-ID: Subject: libgccjit questions To: David Malcolm , jit@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 02:50:55 -0000 Hi, I'm looking into using libgccjit as an ahead-of-time compiler to write a backend for zig (https://ziglang.org/) I've got a few questions I hope you can answer: What became of cross-compilation? I saw it mentioned as a possible roadmap item in https://gcc.gnu.org/legacy-ml/jit/2015-q3/msg00086.html) How can I support inline assembly? Would it be reasonable to add an API that allows extracting sections without writing out to a file and reading it back in? Alteratively, would it be possible to get a pointer and length to e.g. an ELF in memory? Should distros be packaging libgccjit? I noticed that e.g. ArchLinux is not. Possibly because it is documented as "experimental"; possibly because it requires building gcc with --enable-host-shared ? What is the license situation with libgccjit; is it GPL? LGPL? what does this mean for code that uses libgccjit? Thanks, Daurnimator