Retrofitting JIT Compilers into C Interpreters
1–10 of 29 posts
Re: Retrofitting JIT Compilers into C Interpreters
#2Re: Retrofitting JIT Compilers into C Interpreters
#3Re: Retrofitting JIT Compilers into C Interpreters
#4Re: Retrofitting JIT Compilers into C Interpreters
#5However not without downsides. It sounds like average code is only 2x faster than Lua, vs. LuaJit which is often 5-10x faster.
Re: Retrofitting JIT Compilers into C Interpreters
#6Took me a while to figure out whether it's interpreters for C programs or if there's a particular class of interpreters called "C". Turns out it's about interpreters implemented in C that they use modified LLVM to do the retrofitting, but couldn't it be applicable for other languages with LLVM IR, or other switch-in-a-loop patterns in C?
Re: Retrofitting JIT Compilers into C Interpreters
#7i tend to think of myself as a computing nerd, but posts like this one make me realize that i don't even rate on the computing nerd scale.
Re: Retrofitting JIT Compilers into C Interpreters
#8Took me a while to figure out whether it's interpreters for C programs or if there's a particular class of interpreters called "C". Turns out it's about interpreters implemented in C that they use modified LLVM to do the retrofitting, but couldn't it be applicable for other languages with LLVM IR, or other switch-in-a-loop patterns in C?
I've been a low level C and C++ programmer for 30 years. Even with your explanation and having read the webpage twice I have no idea what this technology does or how it works. So it takes normal interpreted code and jits it somehow? But you have to modify the source code of your program in some way?
Re: Retrofitting JIT Compilers into C Interpreters
#9Took me a while to figure out whether it's interpreters for C programs or if there's a particular class of interpreters called "C". Turns out it's about interpreters implemented in C that they use modified LLVM to do the retrofitting, but couldn't it be applicable for other languages with LLVM IR, or other switch-in-a-loop patterns in C?
I've been a low level C and C++ programmer for 30 years. Even with your explanation and having read the webpage twice I have no idea what this technology does or how it works. So it takes normal interpreted code and jits it somehow? But you have to modify the source code of your program in some way?
Re: Retrofitting JIT Compilers into C Interpreters
#10It's quite impressive they're able to take nearly arbitrary C and do this! Very similar to what pypy is doing here, but for C, and not a python subset. However not without downsides. It sounds like average code is only 2x faster than Lua, vs. LuaJit which is often 5-10x faster.