Experiments with ia32 CPU Emulation in C. A frankenstein of a repository attempting to make sense of code across the web. No sense trying to reinvent the wheel for some aspects, such as decoding bytecode. The rest, such as the profiler (and yet-to-be-implemented cpu emulator), are homemade.
http://www.gtoal.com/sbt/
https://github.com/spencertipping/jit-tutorial
https://github.com/v8/v8/blob/master/src/codegen/x64/assembler-x64.h
https://opensource.apple.com/source/clang/clang-421.11.65/src/lib/Target/X86/Disassembler/
./build.sh
OR
gcc -c src/profiler.c -Llib -lxed
ar rcs lib/libprofiler.a profiler.o
gcc src/main.c -Llib -lxed -lprofiler