This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ARM/Thumb on a per function basis


I know -marm and -mthumb can be used from the command line to specify which 
source modules should be compiled for arm, and which should be compiled for 
thumb, but is it possible to specify this on a per function basis?

void my_arm_f( void) __attribute__((arm)) { }
void my_thumb_f( void) __attribute__((thumb)) { }

The interfacearm attribute is the only attribute I can find that's even 
remotely close. I don't think this is what I want though.

Please cc me as I'm not a member of this list,
Thanks,
Shaun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]