gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > make file

#3789 - johnny_north - Sun Mar 09, 2003 12:28 am

I'd like to recompile my binary in thumb rather than arm. When I compile like this:
CFLAGS = -I $(INCDIR2) -I $(INCDIR) -I $(PRJDIR) -mthumb-interwork -mlong-calls -c -g -Wall -fverbose-asm

The code is compiled in arm ok. However, if I add -mthumb like this:

CFLAGS = -I $(INCDIR2) -I $(INCDIR) -I $(PRJDIR) -mthumb -mthumb-interwork -mlong-calls -c -g -Wall -fverbose-asm

I get a long error message, but I think this is the pertainant info:

main.cpp:12: Internal compiler error in extract_insn, at recog.c:2218

Can someone clue me in? Thanks.

#3800 - Torlus - Sun Mar 09, 2003 11:56 am

I encountered this kind of problem with devkitadv on linux.

Try to remove -fverbose-asm

#3807 - johnny_north - Sun Mar 09, 2003 4:32 pm

Removing -fverbose-asm option produces the same results. I am using devkitadv on Windows.

#3810 - Paul Shirley - Sun Mar 09, 2003 5:04 pm

removed

Last edited by Paul Shirley on Sun Mar 28, 2004 9:50 pm; edited 1 time in total

#3831 - johnny_north - Mon Mar 10, 2003 4:23 am

There's a global instance of class declared here - the only one in the whole program. I don't get the long error, but of course the whole prog is dependent upon this one class anyway. Any reason why it wouldn't like this global class delaration?

#3834 - Paul Shirley - Mon Mar 10, 2003 5:05 am

removed