LLVM/Clang cross-compiling for ARM

Mark Tinguely marktinguely at gmail.com
Thu Apr 14 02:25:27 UTC 2011


 From distant memory, Clang was looking up the current processor and 
compiled in the assembly options for that architecture (i386). I can't 
remember if it was still kicking out i386 assembly as well. One idea I 
had was short-circuit the answer to those architecture queries and 
return "arm".

Has anyone tried to compile Clang on an ARM arch and then build world 
with that? I suppose that would be a slow development environment.

--Mark.

On 4/13/2011 5:35 PM, Damjan Marion wrote:
> Hi Vassilis,
>
> On Apr 14, 2011, at 12:02 AM, Vassilis Laganakos wrote:
>
>> Hello Damjan,
>>
>> ----- Original Message -----
>>> From:Damjan Marion<damjan.marion at gmail.com>
>>> To:freebsd-arm at freebsd.org
>>> Cc:
>>> Sent:Sunday, April 10, 2011 5:10 PM
>>> Subject:Re: LLVM/Clang cross-compiling for ARM
>>>
>>>
>>> Hi,
>>>
>>> What is the current status of LLVM/Clang cross-compiling for ARM targets?
>>> Is anybody working actively on this?
>>>
>> I started taking a look into building llvm as cross-compiler
>> for ARM and trying to build -CURRENT for an existing port,
>> so see how far we get :)
>>
>> I'm currently stuck a bit in the first step :) As Mark T. pointed
>> out in a recent email, llvm in -CURRENT does not cross-build,
>> so we have to use an external compiler for now.
> What exactly is missing in current version of llvm in -CURRENT?
>
> After reading some high level overview of llvm i was under impression
> that llvm natively supports multiple targets, but seems that I was wrong.
>
>> I'll hopefully get back soon with some useful info about this...
> Cool, please keep us updated.
>
> Thanks,
>
> Damjan
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>



More information about the freebsd-arm mailing list