Adding Position Independent Code support

Mukul Sabharwal mjsabby@gmail.com
Thu Jan 1 00:00:00 GMT 2015


I'm not familiar with GCC internals at all, so I maybe I proposing
something drastic, but it would be a great feature to have libgccjit
be able to generate Position Independent Code.

In my language project, I often compile and cache code, re-load parts
of the program from a different address (it's a long story ...) and
have to re-generate old code to get fixups, it would be nice to be
able to ask GCC to generate PIC for me, which I can manage myself.

What do others think? A great feature? Or no-one will ever use it?

Mukul



More information about the Jit mailing list