This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: QUERY : ARM inline code in Thumb file?
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Aaron P. D'Souza" <adsouzp at netscape dot net>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 27 Aug 2008 15:25:56 -0400
- Subject: Re: QUERY : ARM inline code in Thumb file?
- References: <48B58864.2060304@netscape.net>
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