[llvm-dev] [RFC] Adding ARC backend

翟翔 via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 1 09:21:35 PDT 2017

Hi Pete,
Thanks for your kind response!
I migrated AVR target for lld https://reviews.llvm.org/D32991 it is very beginning, only support R_AVR_CALL reloc, and ARC is more complex than AVR, I will learn it from binutils, also ARC related doc, then try to implement it.


------------------ Original ------------------
From: Pete Couperus <Peter.J.Couperus at synopsys.com>
Date: 周五,9月 1,2017 11:17 下午
To: Leslie Zhai <lesliezhai at llvm.org.cn>, Peter.J.Couperus at synopsys.com <Peter.J.Couperus at synopsys.com>
Cc: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>
Subject: Re: RE: [RFC] Adding ARC backend

Hello Leslie,

>> * Clang driver and target triple support.

>great, then it is able to generate ELF by $ /opt/llvm-svn/bin/clang -c --target=arc hello.c -o hello.o -mmcu=XXX

Basically yes, but we have not implemented the integrated assembler yet, so currently rely on an external ARC gnu toolchain.
Plus, there are a wide variety of subtargets that are basically unsupported until we start adding configuration support. 

>and do you plan to implement ARC target for lld[1]? it is a good
>testcase: flash them directly to the chip[2], or simulator[3].

Supporting ARC in lld is a good question.  It has not been on my personal short-list, but if you (or others) are interested in specific features, that helps us.
I personally use the bare-metal simulator you sited, though the link you supplied doesn't seem to point out where to get it?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170902/a499a676/attachment.html>

More information about the llvm-dev mailing list