Replies: 1 comment 2 replies
-
Not today. First we need to implement position-independent code (because when you put the code into another process you probably can not guarantee the same start address). Implementing it would take considerable work, especially as it should be done for 5 targets. On the other hand, it is partially implemented that even some specific code generated by MIR can be already PIC. People already proposed to generate PIC an ELF. It is on my list (only I would like to know when I can start to work on this list :(.
I think implementing PIC code would the first important step to achieve this. ELF would be overkill for this task. We could implement simpler target specific relocation mechanism for external entities. On the other hand, the code could be re-generated from MIR-text/binary/C and you will not need all these new features. I guess you have too much code and are not satisfied with the generation speed. |
Beta Was this translation helpful? Give feedback.
-
Is it possible, for example, to generate relocatable x86_64 code and put it in ELF?
I think the MIR JIT compiler puts the code in memory to be executable, but I don't know how can I save it to disk and use it in another process (after the system has restarted).
Beta Was this translation helpful? Give feedback.
All reactions