[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Initialized exported and internal globals
- To: jit@gcc.gnu.org
- Subject: Initialized exported and internal globals
- From: Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com>
- Date: Wed, 2 Jan 2019 10:08:00 +0100
- Authentication-results: sourceware.org; auth=none
- Delivered-to: listarch-jit@gcc.gnu.org
- Delivered-to: mailing list jit@gcc.gnu.org
- 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==
- List-help: <mailto:jit-help@gcc.gnu.org>
- List-post: <mailto:jit@gcc.gnu.org>
- List-subscribe: <mailto:jit-subscribe@gcc.gnu.org>
- Mailing-list: contact jit-help@gcc.gnu.org; run by ezmlm
- Sender: jit-owner@gcc.gnu.org
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