Open Quuxplusone opened 14 years ago
Attached patch-function-range.txt
(5006 bytes, text/plain): Patch file
Yuri, please adjust the patch to fit in 80 columns and not use fixed size buffers or mutable global variables like "incarnation". Note that this functionality will likely be removed when the JIT is converted to MC.
When JIT will be converted to MC?
If it will likely be removed, I guess its better to wait until MC conversion and re-implement it there?
Daniel is working on it now and seems pretty determined, but I don't know of a firm ETA.
Is MC conversion expected to make JIT work on currently unsupported CPUs like Sparc?
Yes, it will make it much easier to bring up a JIT for an unsupported CPU. The first step is to convert Sparc to use the MC infrastructure more (e.g. implementing instruction encoding support) which will get ELF .o file writing up. Once that works, adding a JIT should be very simple.
patch-function-range.txt
(5006 bytes, text/plain)Synopsys: addition of a new debug option: -jit-emit-debug-function-range that enables JIT to produce the text file with function memory boundaries in it. External tools like google-perftools and valgrind (callgrind) will be able to import such file and display function names. Otherwise such names are unknown to those tools and JIT functions are shown with the hex address names.