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: embedding arm instructions in thumb code


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


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