Hi all,

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

I recently got around to running the benchmark of my assembly implementations of some string.h functions (see patch #333 for details) on physical hardware and was surprised to find a significant discrepancy for one piece of code in the relationship between cycles measured by ucSim and execution time on real hardware.

When plotted on an equivalent scale, sim cycles vs. H/W exec time corresponds very closely everywhere, except for my strcspn routine, where ucSim cycle count is significantly lower compared to the H/W execution time.

I have a feeling ucSim might not be using the correct number of cycles somewhere. Not sure where, though, because I'm not using any unusual instructions in the strcspn assembly code that aren't used elsewhere.

Regards,
Basil Hussain


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

Reply via email to