This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: embedding arm instructions in thumb code
- From: Alan Lehotsky <apl at alum dot mit dot edu>
- To: Arvind Krishnaswamy <arvind at CS dot Arizona dot EDU>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 5 Apr 2002 20:36:35 -0500
- Subject: Re: embedding arm instructions in thumb code
- References: <Pine.LNX.4.33.0204051401420.4883-100000@banco.CS.Arizona.EDU>
Try putting
.thumb
and
.arm
directives in front of the code changes. In addition, you should put a label on the
first instruction of each mode change, so that the disassembler gets hints to tell it
how to disassemble the instruction stream...
BTW, does
bx r15
really work? Pretty clever, I guess...
At 2:04 PM -0700 4/5/02, Arvind Krishnaswamy wrote:
>Hi,
>I'm trying to embed arm instructions in thumb code. At the assembly level,
>this is what I do:
>
>[thumb insts]
>..
>..
>..
>bx r15
>[arm insts]
>..
>..
>bx r15
>[thumb insts]
>
>
>But the gnu assembler does not recognize the arm instruction that are embedded.
>How should I go about doing this?
>
>Thanks,
>
>-Arvind
--
------------------------------------------------------------------------
Quality Software Management
http://home.earthlink.net/~qsmgmt
apl@alum.mit.edu
(978)287-0435 Voice
(978)808-6836 Cell
(978)287-0436 Fax
Software Process Improvement and Management Consulting
Language Design and Compiler Implementation