Dynamic Instruction Set statistics?

Let's talk about anything related to the 6502 microprocessor.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Dynamic Instruction Set statistics?

Post by BigEd »

A few further thoughts on these frequencies:
- they are counts of instructions, not counts of cycles spent in instructions, which is a slight distortion of where the time goes
- with this tracing technology, it's not a big step to investigate how often forward or backward branches are taken, or even split that into the three major branch types: on zero, on carry, on sign.
- some emulators might gain performance by grouping the most common instructions' handling together so they occupy fewer cache lines (even the STM32F4 has a sort of cache)
bugbear
Posts: 8
Joined: 04 Apr 2016

Re: Dynamic Instruction Set statistics?

Post by bugbear »

Can I just thank all the good folks of 6502-land for their work on this;
I hope you're finding it as interesting as I do.

ImageImageImage

BugBear
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Re: Dynamic Instruction Set statistics?

Post by kc5tja »

BigEd wrote:
The one little piece of data I did find when this last came up was in Blargg's Emulation Notes.
This is pretty awesome stuff, actually. I wish I had access to this knowledge when writing my 'e' RISC-V emulator.
Post Reply