What does mrc p15 do in ARM inline assembly, and how does GNU C inline asm syntax work?
问题 what does this line in assembly arm does? mrc p15, 0, %0, c9, c13, 0" : : "r" (counter) who is p15 isn't it should be r15 what are all the others? what is :: who are c9, c1 what is the role of each argument? 回答1: Whilst MRC is a generic co-processor inter-op instruction, cp15 is the control processor - which all modern ARM CPUs have and this has been used by ARM was a means of extending the instruction set for on-chip units such as the cache, MMU, performance monitoring and lots else besides.