<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap: break-word;">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">We are already generating object directly.
<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 style="direction: ltr;" id="divRpF706552"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Owen Anderson [resistor@mac.com]<br>
<b>Sent:</b> Wednesday, January 11, 2012 6:40 PM<br>
<b>To:</b> Carter, Jack<br>
<b>Cc:</b> List<br>
<b>Subject:</b> 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>
</body>
</html>