@neauoire I wrote a very simple one for my bytecode interpreter ages ago: https://github.com/uliwitness/Leonie/blob/master/common/LEOInterpreter.c maybe that's of help? I wrote some more complex ones, but they're not public.
Basically you iterate over the bytes of compiled code you have, find out what instruction it is based on the first few bits, then, depending on that, parse the rest of that instruction.