Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
CM3 / RVDS / NOPs
Jump...
Cancel
Locked
Locked
Replies
9 replies
Subscribers
118 subscribers
Views
5016 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
CM3 / RVDS / NOPs
David Clark
over 12 years ago
Parents
Joseph Yiu
over 12 years ago
Note: This was originally posted on 15th June 2010 at
http://forums.arm.com
I guess the loop structure:
do { __disable_irq(); } while (0)
might have cause the NOPs.
Although it didn't expand into a loop, the compiler might have reserved the space for instructions if a loop is needed.
And because it is -O0, it didn't remove the unused instruction space and hence NOPs is used.
Cancel
Vote up
0
Vote down
Cancel
Reply
Joseph Yiu
over 12 years ago
Note: This was originally posted on 15th June 2010 at
http://forums.arm.com
I guess the loop structure:
do { __disable_irq(); } while (0)
might have cause the NOPs.
Although it didn't expand into a loop, the compiler might have reserved the space for instructions if a loop is needed.
And because it is -O0, it didn't remove the unused instruction space and hence NOPs is used.
Cancel
Vote up
0
Vote down
Cancel
Children
No data