This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ARM/Thumb on a per function basis
- From: Shaun Jackman <sjackman at pathwayconnect dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 14 Dec 2001 15:29:18 -0700
- Subject: ARM/Thumb on a per function basis
- Organization: Pathway Connectivity
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