Optimizing a Microcode-based CPU Emulator The first thing you should do before d...

@gloriouscow@oldbytes.space

Optimizing a Microcode-based CPU Emulator

The first thing you should do before doing any optimizations is profiling. Otherwise you might make a very nice optimization to some function that your code spends 1% of its time executing.

This is a profiling output called a flamegraph. It represents the amount of time spent in various functions. Functions that functions call get stacked on top of their caller, like tower of hanoi.

#retrocomputing #emulation