Thanks Renato, Yes, i wanted to cross-compile from x86_64 to ARM. More
specifically, I needed to do it for the cortex m0 processor.
My eventual goal would be to tweak a certain part of the instruction
scheduler specific to the project I am working on. So I am thinking if it
is possible using LLVM. I was going thru the documentation of LLVM-backend
and thought as a first step, try to generate a cross compiler for ARM and
then tweak the code once the cross compiler is ready. I saw that there is
support for cortex-a9 onwards, but am not sure, if there is any support for
cortex m series. In that case, I would have implement a backend which would
support this particular board. This seems to be a long shot, but would you
provide your opinion if this is possible at all? If not, then what would be
the proper approach?

Thanks,
Pavan


On 28 August 2013 01:14, Renato Golin <renato.go...@linaro.org> wrote:

> On 28 August 2013 01:18, pavan p m <pm.pa...@gmail.com> wrote:
>
>> Hello,
>> Is there any LLVM cross-compiler built for ARM. If not, then could you
>> provide some pointers where I could start creating one?
>>
>
> Hi Pavan,
>
> Most binary releases cross-compile by default, so the chances that your
> current copy of Clang can already compile to whatever platform you want.
> But you'll need some additional tools (like binutils) and libraries (like
> libgcc and others) targeted to the correct architecture to make it work.
> LLVM should automatically pick up the right tools, headers and libraries if
> you specify --sysroot and --target options appropriately.
>
> I'm assuming you want to cross-compile from x86_64 to ARM, in which case
> you'll need the arm-gcc toolchain. You can download it from
> http://releases.linaro.org/ or you can install directly from your package
> manager.
>
> cheers,
> --renato
>



-- 
Regards,
Pavan
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to