Hi Rudskyy,<br><br>The place to ask LLVM-related questions is <a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a> -- I've cc'd the list.<br><br><div class="gmail_quote">2009/1/30 Rudskyy <span dir="ltr"><<a href="mailto:tema13tema@yahoo.de">tema13tema@yahoo.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="DE">
<div><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">I need some help in subject: "Writing an LLVM
Compiler Backend"!</span></font>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">There is a processor with a simple assembly code (<a href="http://hilscher.com/" target="_blank">http://hilscher.com/</a> xPEC- processor).
I understand, that I need to convert a llvm-IR code to my specific assembly (no
JIT). </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-US">But I haven't </span></font><font face="Verdana" size="2"><span style="font-size: 9.5pt; font-family: Verdana;" lang="EN-US">experience
in compilers. I have found llvm-projects and try to implement it to my task,
but don't success!</span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 9.5pt; font-family: Verdana;" lang="EN-US">Can you help, suggest to start from?</span></font></p></div></div></blockquote><div>Judging by your email, I assume you were looking at <a href="http://llvm.org/docs/WritingAnLLVMBackend.html">http://llvm.org/docs/WritingAnLLVMBackend.html</a> ? If you're not familiar with compilers or LLVM, consider reading some documents and looking at some of the presentations here: <a href="http://llvm.org/docs/#llvmdesign">http://llvm.org/docs/#llvmdesign</a> .<br>
<br>You can also see how other backends are implemented in LLVM: <a href="http://llvm.org/svn/llvm-project/llvm/trunk/lib/Target/">http://llvm.org/svn/llvm-project/llvm/trunk/lib/Target/</a> . You'll want to read about Tablegen: <a href="http://llvm.org/docs/TableGenFundamentals.html">http://llvm.org/docs/TableGenFundamentals.html</a> which will tell you how to write the .td files to describe your target, and then write the correct components (code generator, assembly printer, etc.) for your target.<br>
<br>Good luck!<br><br>Misha<br> </div><div><br> </div></div><br>