Initialized exported and internal globals

Marc Nieper-Wißkirchen marc.nieper+gnu@gmail.com
Tue Jan 1 00:00:00 GMT 2019


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



More information about the Jit mailing list