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

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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
Detecting Thumb and Arm mode at compile time   Message List  
Reply | Forward Message #15004 of 15019 |
Hello,

I am trying to write something like this:

#if (compiled in ARM mode)
code 1
#else // compiled in THUMB mode
code 2

What the (compile in ARM mode) test would be like?
Can anyone help me?

thanks,
Vital









Wed Aug 2, 2006 2:03 pm

vitalhb
Offline Offline
Send Email Send Email

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

Hello, I am trying to write something like this: #if (compiled in ARM mode) code 1 #else // compiled in THUMB mode code 2 What the (compile in ARM mode) test...
Vital
vitalhb
Offline Send Email
Aug 2, 2006
11:32 pm

Hello, I think there's no easy way how to detect compilation mode, you should check your compiler documentation for predefined macros, maybe there's some way...
Ped
ped7g
Offline Send Email
Aug 3, 2006
8:55 am

Peter, Thanks for your help. I received the answer for my problem from the GnuArm list: GCC defines the constant __thumb__ when it is compiling in thumb mode, ...
Vital
vitalhb
Offline Send Email
Aug 3, 2006
7:05 pm
Advanced

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