Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Cortex-R4F : need explanations about some PMU events
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
3 replies
Subscribers
126 subscribers
Views
1879 views
Users
0 members are here
Related
Cortex-R4F : need explanations about some PMU events
Offline
Christophe Beausoleil
over 7 years ago
Note: This was originally posted on 29th July 2011 at http://forums.arm.com
Hello,
I am using a Cortex-R4F (TMS570), and I used PMU to count the number of "Instruction architecturally executed" and "Dual-issued pair of instructions architecturally executed" (§6.1 of DDI0363E) in order to benchmark that component, and I get a strange result : I built a test code with 4096 instructions (in fact, a little bit more before and after the PMU is started/stopped), and I obtained :
- in ARM mode :
3083
Instruction architecturally executed
2048 Dual-issued pair of instructions architecturally executed
- in Thumb mode :
4015
Instruction architecturally executed
2048 Dual-issued pair of instructions architecturally executed
Please, could someone explain why the number of Instruction architecturally executed is not the same in both modes ?
And more important for me : how can I count the real number of instructions of any code ?
Thanks a lot
Best regards
Christophe
Offline
Martin Weidmann
over 7 years ago
Note: This was originally posted on 20th February 2012 at
http://forums.arm.com
You said that it should be 4096, how do you know this? What are you writing the code in? C will typically compile to more Thumb instructions than ARM instructions*, so what you've seen isn't necessarily wrong.
* There are cases where ARM instructions are more flexible than Thumb instructions. So the compiler can use one ARM instr or two Thumb instrs. This is less common with Thumb-2, but there are still some instances.
Cancel
Up
0
Down
Reply
Cancel
Offline
Christophe Beausoleil
over 7 years ago
Note: This was originally posted on 22nd February 2012 at
http://forums.arm.com
Thanks for your answer. I am sorry, I realize I was indistinct...
Of course, my test code is written in assembler :
movs r0, #1
nop
movs r1, #2
nop
movs r2, #3
nop
...
preceded with a strict directive for compiling in ARM or Thumb mode.
Best regards
Christophe
Cancel
Up
0
Down
Reply
Cancel
Offline
Christophe Beausoleil
over 7 years ago
Note: This was originally posted on 20th February 2012 at
http://forums.arm.com
Hi all,
Does someone have an idea ? I really can not figure out why the PMU count is wrong...
Thanks a lot
Best regards
Christophe
Cancel
Up
0
Down
Reply
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
Extended asm alternative for Arm Compiler 5 (memory barriers)
+1
Memory Management Unit (MMU)
Arm Assembly Language (ASM)
Arm Compiler 5
2200
views
1
reply
Latest
1 month ago
by
Ronan Synnott
Answered
Use Arm DS5 streamline performance analyzer on TX2
+1
2989
views
9
replies
Latest
1 month ago
by
ShirB
Answered
Problem with arm_cmplx_mag_f32()
+1
2514
views
2
replies
Latest
2 months ago
by
Vishal_Patel
Answered
Can anyone please help me on how evalution development studio 2020.1 work s and which compiler is needed and how it can be setup?
+1
2246
views
3
replies
Latest
2 months ago
by
Ronan Synnott
Answered
Can anyone tell me the difference between DSTREAM and DSTREAM-ST?
+1
2375
views
2
replies
Latest
2 months ago
by
Xiang
<
>
View all questions in Arm Development Studio forum