public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Marc Nieper-Wißkirchen" <marc.nieper+gnu@gmail.com>
To: "Marc Nieper-Wißkirchen" <marc.nieper+gnu@gmail.com>
Cc: jit@gcc.gnu.org
Subject: Re: Initialized exported and internal globals
Date: Tue, 01 Jan 2019 00:00:00 -0000	[thread overview]
Message-ID: <CAEYrNrSzov4iKQ_JEj+g-Sd6uNTO2Xz78rpdrMfF4518Uv6Bcg@mail.gmail.com> (raw)
In-Reply-To: <CAEYrNrSFHgFZcyA7xLpJqAif0Y04+kmhJSeGiwGGyhm+GG8X7g@mail.gmail.com>

When libgccjit supports initialized globals, one should probably also
add struct, union, and array initializers to libgccjit.

Am Mi., 2. Jan. 2019 um 10:08 Uhr schrieb Marc Nieper-Wißkirchen
<marc.nieper+gnu@gmail.com>:
>
> 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

      reply	other threads:[~2019-01-06 11:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01  0:00 Marc Nieper-Wißkirchen
2019-01-01  0:00 ` Marc Nieper-Wißkirchen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEYrNrSzov4iKQ_JEj+g-Sd6uNTO2Xz78rpdrMfF4518Uv6Bcg@mail.gmail.com \
    --to=marc.nieper+gnu@gmail.com \
    --cc=jit@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).