From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60696 invoked by alias); 2 Jan 2019 09:08:16 -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 60683 invoked by uid 89); 2 Jan 2019 09:08:15 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-HELO:sk:mail-pl, exported, ineffective X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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: mail-pl1-f175.google.com Received: from mail-pl1-f175.google.com (HELO mail-pl1-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Jan 2019 09:08:14 +0000 Received: by mail-pl1-f175.google.com with SMTP id a14so14261817plm.12 for ; Wed, 02 Jan 2019 01:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Zs6TXi1A8AWJir1EragEy8NDmArJEOkgXepVlO6YoxI=; b=r5CQq/MO47c/iekL2+rRJWE3pgJb8IpbSmPaKgMbD56RJwF3LoHsvi4mMYIhRT0xG3 Hk8F03NDcRQ+FgQ44JGYtI2zixv3TygGhlCm3Q4oWPJnbnKY867LqJhmpSG0EG1Bcxu4 7k+Q7chFFUVQD1Vjd4i99MtTFVh5vE3Gsx3XYPIuemY9YkzWdV8qoFeiImiLr/Q0MPSI 15mTo4ngTs2b5dWj/mLbuPbG4vtj+5e0E+4ykxqIe9Xe2cGrb96eZCaC34mmiqFtIG3t X2AyXUq1lCnRszpWpzB5wynDgEZqM3KPqp+xaDzqaJKqkgiaPSkdG13t/usClYJiWkU6 F0jw== 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=Zs6TXi1A8AWJir1EragEy8NDmArJEOkgXepVlO6YoxI=; b=APurPv6JChU7a4QBX2TE940iSlsF7Zj1dZXlkVnF/AUG8BHYB37ezoJXRTm2I7Jbk+ BIHycckjh3064cDzO/PnvC0QWKz5kP2azHadTBIcFDzlQmWau2auGCv4QIOXJvkMpEwY OPEh6eq2FjC8QMA8cM1SregBn9tFekhNh83c0krEuI4oIw+ypLa6hD/Gy23NbM2VcGRJ y40E3K9USS/pilESWevuVs/IQOSe/6k6Fj/+LrI0E46Zpg6PmFNSMA3PLcM6Q5cMseQs Pm7ZCZ69m1MukM743nAmldyubARrv1xODjxie6tFSyNEwXtgwn56y9CdJRkHgle0aCzo XZNg== X-Gm-Message-State: AJcUukdY8XuQsk4fJhwf9qgztf9jEfxG/K9h4dCljRtTNwYk6yDX2sRU m7yhIgeFbVgALpZDIC4s2iAjvH49sm7tDDAoSypG8Sq15YY= X-Google-Smtp-Source: ALg8bN4hClpD98cM9wKiC0PNgX3bKlXQq9d7sYMoP9pbngix0eYT8mFQFG29ZXc1dB4vvyTcFgaCGQccNM4qBm9z/qc= X-Received: by 2002:a17:902:be0e:: with SMTP id r14mr40191451pls.124.1546420092327; Wed, 02 Jan 2019 01:08:12 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-ID: Subject: Initialized exported and internal globals To: jit@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-q1/txt/msg00002.txt.bz2 libgccjit allows to define globals with `gcc_jit_context_new_global'. How can I create a global that is initialized to some other value than 0, i.e. how can I populate the data segment in the output of a compilation to a file? As a workaround, I can initialize data through the code, but this seems ineffective if there is a lot of data. Thanks! -- Marc