LLVM and backend

Hallo!

I have found the LLVM-project and hope it can be useful for me in my work.

There is a processor with a simple assembly code (http://hilscher.com/ xPEC- processor).

The task is that I need a “translator” from C/C++ to native assembly code.

And understand, that I need to write a backend specifying my target (convertion a llvm-IR code to assembly).

Can you help, suggest to start from?

Best regards,

Rudskyy Artem

Hi Rudskyy,

This is a webpage explaining how to write a backend:

  http://llvm.org/docs/WritingAnLLVMBackend.html

It would also be good to peruse the other LLVM docs to get a feel for how it all works:

  http://llvm.org/docs/

-bw