On 23 July 2012 17:03, Chris Cadwallader <ccadwallader at arxan.com> wrote:> On Darwin, if -march is armv7 clang's driver will assume you want thumb2 unless you also give it -mno-thumb but that is irrelevant with mcpu=cortex-m3.I think that Thumb2 should be the default for v7 on any system, not just Darwin. Maybe some ARM folk can comment on this... -- cheers, --renato http://systemcall.org/
salvatore benedetto
2012-Jul-23 20:52 UTC
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Mon, Jul 23, 2012 at 8:14 PM, Renato Golin <rengolin at systemcall.org> wrote:> On 23 July 2012 17:03, Chris Cadwallader <ccadwallader at arxan.com> wrote: >> On Darwin, if -march is armv7 clang's driver will assume you want thumb2 unless you also give it -mno-thumb but that is irrelevant with mcpu=cortex-m3. > > I think that Thumb2 should be the default for v7 on any system, not > just Darwin. Maybe some ARM folk can comment on this... >Just out of curiosity, is anyone working on this? Is there a ticket opened? And yet out of curiosity, how much of work is this? Weeks? Months? As I have officially switched to clang for my project, I'm very interested in seeing this fixed. :-) Regards, S.
salvatore benedetto <salvatore.benedetto at gmail.com> writes:> On Mon, Jul 23, 2012 at 8:14 PM, Renato Golin <rengolin at systemcall.org> wrote: >> On 23 July 2012 17:03, Chris Cadwallader <ccadwallader at arxan.com> wrote: >>> On Darwin, if -march is armv7 clang's driver will assume you want >>> thumb2 unless you also give it -mno-thumb but that is irrelevant >>> with mcpu=cortex-m3. >> >> I think that Thumb2 should be the default for v7 on any system, not >> just Darwin. Maybe some ARM folk can comment on this... >> > > Just out of curiosity, is anyone working on this? > Is there a ticket opened? > > And yet out of curiosity, how much of work is this? > Weeks? Months? > > As I have officially switched to clang for my project, I'm very > interested in seeing this fixed. :-)AFAIK James Molloy did some work on it some while ago, perhaps he can comment on this -- when he is back. -- Wojciech Meyer http://danmey.org
Reasonably Related Threads
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3
- [LLVMdev] Setting up a cross-compiler for cortex-m3