[Coco] Profiling emulator?

Mark McDougall msmcdoug at iinet.net.au
Wed Aug 31 08:18:54 EDT 2016


On 31/08/2016 5:21 PM, Mark McDougall wrote:

> Adding profiling would necessitate changes to the 6809 core. In fact, the
> profiling would pretty much have to be done in the core; either that or set
> the granularity to 1 cycle and expose the CPU state which would likely incur
> a significant performance hit. Maybe that is of little consequence on modern
> machines???

A bit more thought on the matter tonight... could probably get away with 
minimal changes to the 6809 core, but add a 'profiling hook' inside the main 
execution loop that exposes the cycle count, instruction and operands.

One impediment is the lack of a debugger in this core.

Regards,

-- 
|              Mark McDougall                | "Electrical Engineers do it
|  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"


More information about the Coco mailing list