4 ms·
FWIW here's all 700 lines of Blink's x86 decoder. https://github.com/jart/blink/blob/master/blink/x86.c https://github.com/jart/blink/blob/master/blink/x86.c
by jart 2y ago
FWIW here's all 700 lines of Blink's x86 decoder. https://github.com/jart/blink/blob/master/blink/x86.c https://github.com/jart/blink/blob/master/blink/x86.c
- bonzini 2y agoI don't want to be the person that has to add an instruction to blink...
- jcranmer 2y agoIt looks like someone started with Intel's XED code (which relies on custom tables to specify instructions, and compiles that to C tables at compile time) and hand-minimized the code into a single file. I'm guessing it's designed to never have any more code added to it.
- jart 2y agoI minimized it by hand to make it more maintainable, to me at least.