←back to thread

176 points modinfo | 2 comments | | HN request time: 0.448s | source
1. osa1 ◴[] No.45654446[source]
Is blink an interpreter for x86_64 instructions, or does it compile basic blocks to the host architecture?

I had a look at the source code but I'm not sure how it works. It looks a bit too small (50 kloc C + 6.6 kloc headers) to have code generators for all of the supported host architectures.

replies(1): >>45656792 #
2. halb ◴[] No.45656792[source]
It's an interpreter, but it does support JIT to x64 and arm. There are some details here: https://github.com/jart/blink/?tab=readme-ov-file#technical-...

On the x64-playground website it's just running as an interpreter, inside of web assembly