On Wed, 22 Jul 2020, Basil Hussain wrote:

In ucSim, where or what defines how many simulated cycles each instruction takes? Specifically, I am looking at the STM8 simulator.

Nowhere, and nothing defines that. Correct tick counting is not implemented in uCsim (except s51). It counts 1 clock (tick) for every instruction which will be unreal especially when lot of jumps happen.

To compare quality of two programs, I recommend to use vclk instead (available in sim_vclk variable), it will be sum of the FETCH, READ, and WRITE operations.

Daniel


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to