Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
compiling in thumb   Message List  
Reply | Forward Message #13817 of 15019 |
Re: [gbadev] compiling in thumb


Are you doing optimizations? Have you tried various optimizations? I have
found thumb problems with -O3, and sometimes -O2 going down to -O1 might
fix it...Based on the command line you have given here you dont have these
turned on (so its -O0) I would take a crack at -O1 and -O2 before throwing
in the towel...

If possible please go ahead and send that bug report into the gcc crew,
perhaps someday they will work on these problems (I have one or two in
there myself)...Cant get them fixed if we dont turn them in...

Did you try it with just -mthumb and without the -mthumb-interwork?

what version of gcc are you using?

David

At 06:36 AM 3/17/2003 +0000, you wrote:
>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
>It is asking me to submit a bug report, which i'll do when I
>determine how to fix the problem.
>
>Seems that there is a global class declaration at main.cpp:12. When I
>comment out this line, the compiler doesn't give the same complaint,
>but of course the interupt table is global and needs to call members
>of this class.
>
>Anyone experienced this problem?
>
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





Tue Mar 18, 2003 4:58 am

dwelchgba
Offline Offline
Send Email Send Email

Forward
Message #13817 of 15019 |
Expand Messages Author Sort by Date

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 - ...
j_north2002
Offline Send Email
Mar 17, 2003
8:45 am

Are you doing optimizations? Have you tried various optimizations? I have found thumb problems with -O3, and sometimes -O2 going down to -O1 might fix...
David Welch
dwelchgba
Offline Send Email
Mar 18, 2003
9:19 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help