<html><head><base href="x-msg://1993/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">ARM is the best model currently, though x86 does some interesting things as well and is worth looking at.<div><br></div><div>If there's anything in particular that's causing head-scratching, just ask. There's not much available in terms of how-to documentation, unfortunately. That's definitely on my TODO list to write, but time constraints are rough right now.</div><div><br></div><div>-Jim</div><div><br><div><div>On Jan 11, 2012, at 8:09 PM, Carter, Jack wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; word-wrap: break-word; "><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; ">We are already generating object directly.<span class="Apple-converted-space"> </span><br><br>It is on my roadmap to implement the standalone assembler, but I was hoping for some suggestions ;-)<br><br>My target is Mips and I have started looking at what ARM does. If there is a better model or how-to guide I'd like to know.<br><br>Thanks,<br><br>Jack<br><div style="font-family: 'Times New Roman'; color: rgb(0, 0, 0); font-size: 16px; "><hr tabindex="-1"><div id="divRpF706552" style="direction: ltr; "><font color="#000000" face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span>Owen Anderson [<a href="mailto:resistor@mac.com">resistor@mac.com</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, January 11, 2012 6:40 PM<br><b>To:</b><span class="Apple-converted-space"> </span>Carter, Jack<br><b>Cc:</b><span class="Apple-converted-space"> </span>List<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [LLVMdev] llvm-mc standalone assemblers and testing<br></font><br></div><div></div><div><br><div><div>On Jan 11, 2012, at 6:05 PM, Carter, Jack wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; "><div><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; ">I have had references to llvm-mc in terms of a tester for MC level code changes and have just found and read the blog<span class="Apple-converted-space"> </span><a href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html" target="_blank">http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html</a>.<span class="Apple-converted-space"> </span><br><br>Am I correct that lib/Target/<target>/AsmParser/*.cpp needs to be completed to make a standalone assembler for a specific target and until that is done, llvm-mc can't be used to generate output object that is tested by elf-dump?<br></div></div></span></blockquote></div><br><div>You need to implement an AsmParser if you want to generate object files from assembly files. You can generate object files from higher-level inputs (.c, .ll) without a functional AsmParser as long as your inputs don't use inline assembly.</div><div><br></div><div>--Owen</div></div></div></div>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div></blockquote></div><br></div></body></html>