If so, how? Or must I hook up my hardware debugger? I just want to count machine cycles.
Can I see the processor view when debugging with simulator?
will get you this:
And, yes, this ie very commonly used when you want to count cycles. As you may know you can right click "cycle counter" to reset the count before running to a breakpoint at the end of some segment you want to measure.
If you set "Frequency" to what your CPU will actually run at it will also tell you in us or ms how long a segment took to execute.
Does your time (cycles) depend upon external inputs, or is it pure code? Certainly inputs (such as polling) could affect the results.
Does your time (cycles) depend upon external inputs,
Now I got it.
Jolly Good! Now please mark the solution - see Tip #5 in my signature, below:
I got it to work just fine. Apparently it only counts cycles when using the simulator, but that's okay.
Apparently it only counts cycles when using the simulator,
It would take specialized in-chip hardware to do otherwise; since you want the "chip mode" to run in its normal real-time wetting. In the old days, you had special bond-out emulator chips that might have included extra such goodies.
Those emulators/debuggers often cost $5000 to $15000 & we had several.
It would take specialized in-chip hardware to do otherwise
I probably knew that years ago, but in my old age I forget a lot.
Maybe you need someone to flash you & get those neurons moving.
electroshock therapy seems a bit much. I'd rather just be stupid.
The way you'd usually measure execution time in real hardware is using an IO pin and a scope. ;-)
Yeah. I don't need it. I got all I need. Thanks.