Re: Mixed arm and thumb code

Posted by jbsnyder on
URL: http://elua-development.15.s1.nabble.com/Mixed-arm-and-thumb-code-tp2537643p2545641.html

I've not tried these, but one of the responses in this thread might  
help:
http://scons.tigris.org/ds/viewMessage.do?dsForumId=1272&dsMessageId=1290233

I'm not hugely familiar with scons, but it would seem strange if it  
wouldn't do something like this.

On Mar 26, 2009, at 2:44 PM, Arnim Littek wrote:

> On Thu, 26 Mar 2009 23:30:49 Bogdan Marinescu wrote:
>> 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.
>
> Under these circumstances I'd be questioning whether scons is the  
> right tool
> for the job.  Tools are not there to make life difficult, and if one  
> doesn't
> work, it is time to find another.  IMHO
>
> Arnim.
> _______________________________________________
> Elua-dev mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/elua-dev
--
James Snyder
Biomedical Engineering
Northwestern University
[hidden email]
http://fanplastic.org/key.txt
ph: (847) 448-0386


_______________________________________________
Elua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev

PGP.sig (201 bytes) Download Attachment