* Initialized exported and internal globals
@ 2019-01-01 0:00 Marc Nieper-Wißkirchen
2019-01-01 0:00 ` Marc Nieper-Wißkirchen
0 siblings, 1 reply; 2+ messages in thread
From: Marc Nieper-Wißkirchen @ 2019-01-01 0:00 UTC (permalink / raw)
To: jit
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Initialized exported and internal globals
2019-01-01 0:00 Initialized exported and internal globals Marc Nieper-Wißkirchen
@ 2019-01-01 0:00 ` Marc Nieper-Wißkirchen
0 siblings, 0 replies; 2+ messages in thread
From: Marc Nieper-Wißkirchen @ 2019-01-01 0:00 UTC (permalink / raw)
To: Marc Nieper-Wißkirchen; +Cc: jit
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-06 11:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01 0:00 Initialized exported and internal globals Marc Nieper-Wißkirchen
2019-01-01 0:00 ` Marc Nieper-Wißkirchen
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).