Problems assembling TI-style code with ARM-coff assembler

Eckhard Jokisch e.jokisch@u-code.de
Thu Aug 22 01:32:00 GMT 2002


Hello,

I have to compile a  *.c file that is written to be compiled by a TI compiler 
for TMS470 ( ARM7-core) and contains the followling lines:

{
	...
	asm("	.def _entrytable		");
	asm("	.def $entrytable		");
	asm("_entrytable:				");
	asm("$entrytable:				");
...
}

This results in 

/tmp/ccm7ONcX.s: Assembler messages:
/tmp/ccm7ONcX.s:110: Warning: rest of line ignored; first ignored character is 
`"'
/tmp/ccm7ONcX.s:112: Warning: .def pseudo-op used inside of .def/.endef: 
ignored.
/tmp/ccm7ONcX.s:112: Warning: rest of line ignored; first ignored character is 
`$'

And the line

	/*Undefined Instruction			+ 0x0008									  */							
	asm("  	B     #-8				"); 

produces the error

/tmp/ccYZkjox.s:117: Error: bad expression -- `b #-8'

Can anybody help out with the correct mnemonic and where can I find something 
about the assembler commands that may be used by arm-7-coff-as?

Many thanks in advance

Eckhard Jokisch



More information about the Binutils mailing list