This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: QUERY : ARM inline code in Thumb file?


On Wed, Aug 27, 2008 at 10:31:24PM +0530, Aaron P. D'Souza wrote:
> i have a C file that has been compiled for Thumb mode. in it, i am
> using ARM inline assembly code. apparently, GCC issues no error
> message but forcibly converts the ARM code into Thumb code.

It's just being disassembled wrong; try using a newer version of
objdump.  But if you want to change modes, you're going to need a 'bx
pc'.

> i think that GCC requires an entire file to be in either Thumb mode
> or ARM mode, but i am not sure. is that true?

It has to be effectively true.  Leave the file in the same mode it
was in when the asm was entered.

-- 
Daniel Jacobowitz
CodeSourcery


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