[cfe-dev] cross-compile Windows => ARM?

Jonathan Roelofs jonathan at codesourcery.com
Fri Aug 7 09:21:13 PDT 2015



On 8/7/15 6:50 AM, Renato Golin wrote:
> On 7 August 2015 at 12:42,  <g4 at novadsp.com> wrote:
>> 1. Are the instructions here:
>> http://llvm.org/docs/HowToCrossCompileLLVM.html adequate to get a Windows
>> binary that will generate ARM HF code? I am more than happy to fettle where
>> necessary. if there are specific areas that need work please point me to the
>> right place to find out what.
>
> I have no experience on Windows, but I believe Clang should behave
> similarly independent (ish) of the host OS.
>
> On Linux, you need ARM libraries and a linker. Assuming you have that
> on Windows, it should work in the same way.
>
>
>> 2. Are there any docs/notes re the state of C++ runtime libs for the same?
>> Looking primarily at M4 and A8 cores.
>
> No docs that I know, but there is a lot of interest in libc++ from the
> ARM community. Though, I'd assume most of the interest is on Linux /
> A-class. I'm not sure how that would fare on an M-class.

I had most of the libcxx tests passing on baremetal M0 and M4 (via 
semihosted qemu) about 6mo ago. A lot of it comes down to obtaining a 
suitable libc... in my case I used newlib.


Jon

>
> You shouldn't have much problems on A8, but it may get weird on the
> M4. It's worth a try, though.
>
> cheers,
> --renato
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-dev mailing list