This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM Assembler


jtlillev@rockwellcollins.com said the following on 07/21/2006 10:57 AM:
I have installed the GCC toolset for the ARM processor and have tried test
compiling a few files.  One of the files uses the debug co-processor port
(CP14) assembly instructions and I am having difficulty getting the syntax
correct for use with the GCC ARM Assembler.  The line of code is:

__asm ("MRC p14, 0, status, c0, c1, 0");

This is just a slightly modified syntax from what works with the ARM RVDS
toolset (these files are examples from ARM). The assembler error is that
it expects an ARM register to be specified in the command. I'm assuming
that it is complaining about "c0" and "c1" which are registers associated
with the debug port.
use 'cr1' and 'cr2' to verify but 'c0' 'c1' should also work. How about 'status'
do u have an ARM register renamed somewhere?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]