Post Reply 
New Saturn asm "add loop" benchmark for the HP48G
11-04-2023, 05:23 PM
Post: #20
RE: New Saturn asm "add loop" benchmark for the HP48G
(11-04-2023 03:37 PM)Werner Wrote:  This speedup, at least, is to be expected? GOC and GONC have different execution times when they jump or not. Taking from the cycles.pdf in your other post, it's either 11 or 30 cycles (I wonder why you divide those by 2 btw?), so the original loop times 5 was 5*49=245 cycles, and the unrolled one 4*30+49 = 169. The ratio of 169/245 matches 4383185/6429914, well, almost.

Cheers, Werner

Oh my Blush Have I made a stupid arithmetic error? I thought I was supposed to divide the counts by two to get the cycle count. I don't read or speak French and I was confused by the document Blush

If I don't divide by two, then the cycle count for the inner add loop is 49. This gives :

\(\displaystyle \dfrac {\left ( 3900000 \cdot 60 \right )}{49} \approx 4775510 \)

Sorry people Blush

This still doesn't explain the errant counts I sometimes get...

Regards,

Jonathan

Aeternitas modo est. Longa non est, paene nil.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New Saturn asm "add loop" benchmark for the HP48G - Jonathan Busby - 11-04-2023 05:23 PM



User(s) browsing this thread: 1 Guest(s)