Page 2 of 2

Re: Dynamic Instruction Set statistics?

Posted: Wed May 25, 2016 7:37 am
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)

Re: Dynamic Instruction Set statistics?

Posted: Wed May 25, 2016 8:18 am
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

Re: Dynamic Instruction Set statistics?

Posted: Fri Jun 10, 2016 3:25 am
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.