Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Inline Assembly coding
Jump...
Cancel
Locked
Locked
Replies
6 replies
Subscribers
119 subscribers
Views
5528 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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
Inline Assembly coding
Divya G S
over 12 years ago
Parents
Jack Lu
over 12 years ago
Note: This was originally posted on 11th August 2011 at
http://forums.arm.com
Hi,
I am also a newbie of asm. Can any one help to explain below GCC function codes, what are the meaning of the :"cc"?
Thanks in advance!
-----------------------------------
static inline unsigned int read_cpuid(void)
{
unsigned int val;
/* Main ID register (MIDR) */
asm("mrc p15, 0, %0, c0, c0, 0"
: "=r" (val)
:
: "cc"
);
//What's this means?
return val;
}
--------------------------------
Cancel
Vote up
0
Vote down
Cancel
Reply
Jack Lu
over 12 years ago
Note: This was originally posted on 11th August 2011 at
http://forums.arm.com
Hi,
I am also a newbie of asm. Can any one help to explain below GCC function codes, what are the meaning of the :"cc"?
Thanks in advance!
-----------------------------------
static inline unsigned int read_cpuid(void)
{
unsigned int val;
/* Main ID register (MIDR) */
asm("mrc p15, 0, %0, c0, c0, 0"
: "=r" (val)
:
: "cc"
);
//What's this means?
return val;
}
--------------------------------
Cancel
Vote up
0
Vote down
Cancel
Children
No data