keshav yadav <keshav.yadav2005@xxxxxxxxx> writes: > I want to use MIPS 16 bit instruction similar to ARM thumb mode. But i > am getting error > > #mips-gcc -mips16 -o test.o test.c > > /tmp/ccJFGlL0.s: Assembler messages: > /tmp/ccJFGlL0.s:17: Internal error! > Assertion failure in macro_build_lui at ../../gas/config/tc-mips.c line 3142 > > 1. Is there problem in toolchain i have made ? > 2. is i am giving 16 bit option to gcc correctly. Please send e-mail to gcc-help@xxxxxxxxxxx, not gcc-help@xxxxxxxx I'm not sure where you saw the latter e-mail address. This appears to be a bug in the assembler. The assembler is part of the GNU binutils, not gcc. See http://sourceware.org/binutils for more information. If you send e-mail there, make sure you mention the version of the GNU binutils that you are using. It's quite possible that this bug is fixed in the current version, which I believe is 2.19.1. The -mips16 option is correct. Ian