[LLVMdev] Guidance regarding a dummy project
John Criswell
criswell at illinois.edu
Fri Jun 6 07:53:43 PDT 2014
Dear Pratik,
What I think you will want to do is to create a new assembler and a new
code generator for your architecture. This, I suspect, means that
you'll need to understand how to describe your architecture's
instruction set using TableGen, how to create an assembler using the MC
interface, and how to build a code generator.
My best suggestion is to start looking at the documentation "Writing an
LLVM Backend" and "The LLVM Target-Dependent Code Generator" at
http://llvm.org/docs. The "Tablegen" document may also help. The links
for these documents are at:
http://llvm.org/docs/WritingAnLLVMBackend.html
http://llvm.org/docs/CodeGenerator.html
http://llvm.org/docs/TableGen/index.html
As I have not written a new code generator from scratch myself, that's
about all the help I can offer. I suggest reading these documents (if
you have not already) and then write the list with more specific
questions as needed.
Good luck,
John Criswell
On 6/4/14, 3:37 AM, pratik dand wrote:
> Dear,
>
> I am looking to build a compiler-assembler with a custom architecture.
> I have a new Instruction set defined with me and I would like atleast
> my C programs to get converted to assembly language corresponding to
> the custom architecture.
>
> I have been going through llvm and its resources on the web, Can any
> one of you offer guidance about the above problem.
>
> All I want is to develop a tool which can take in a custom
> architecture and assemble all programs corresponding to the architecture.
>
> Regards,
> Pratik
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140606/1d5f9546/attachment.html>
More information about the llvm-dev
mailing list