[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initialized exported and internal globals



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