comparison between XC164 and XC2000 with same system clock

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Ted
Employee
Employee
Has anyone compared software execution time between XC16x and XC2000 with same system clock?

If yes, how was your result?
0 Likes
3 Replies
Not applicable
Them being large 16bit or even 32bit architectures I haven't (where's the fun in that?). But it should be pretty straightforward, just check the manuals for the cycle times.

It's branching where stuff gets tricky. So after checking cycle times your real question is, do I need to branch a lot?

Branching largely depends on whether the branch prediction is well suited to your application, unless you have access to the spec (the Intel Pentium was a 4 state machine, with 3 states in favour of branching). Nowadays branch prediction is the big secret, the feature that makes all the difference. So unless the you're in on that the only way to find out is try. With your target application. I don't think there's a way around that if you want meaningful results.
0 Likes
Ted
Employee
Employee
Thanks but I think BP is not a secret any more now.
BTW, if you do the comparison test for those 2 MC types, you will be shocked. 🙂
0 Likes
Not applicable
the code difference can be compared by reverse operation
0 Likes