http://elua-development.15.s1.nabble.com/Mixed-arm-and-thumb-code-tp2537643p2540689.html
> On Thu, Mar 26, 2009 at 12:28 PM, mpthompson
> <
[hidden email]<mailto:
[hidden email]>> wrote:
> > I'm starting to work with the Periodic Interval Timer on the AT91SAM7S and
> > I believe I need to have the interrupt handlers be compiled as 32bit Arm
> > instructions rather than 16bit Thumb instructions. I'm not familiar with
> > scons, but is there an easy way that I can pass custom options to specific
> > C files to control whether the -mthumb option is passed? Or, is the
> > 'irqHandler' in the board_cstartup.s capable of calling the interrupt
> > handler as thumb code? As best I can tell this is not the case and any C
> > code called from the 'irqHandler' must be 32 bit Arm code.
>
> This questin haunted me for quite a while now, and the answer seems to be
> no, there's no easy way to do this in scons.
for the job. Tools are not there to make life difficult, and if one doesn't
work, it is time to find another. IMHO