<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;">Jim,<br>
<br>
What I am doing is modeling from ARM and X86 just enough to get "hello world" to produce correct ELF output.
<br>
<br>
>From many years of experience I know this will leave me with little understanding of what is going on and I will need to have this understanding to really add long term value. Maybe my questions will help frame the how-to-and-why documentation.<br>
<br>
I think my first patch will include a link from llvm-mc references in CodeGenerator.html pointing to the llvm project blog that discusses what it is trying to do.<br>
<br>
Cheers,<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="divRpF720877"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Jim Grosbach [grosbach@apple.com]<br>
<b>Sent:</b> Thursday, January 12, 2012 10:51 AM<br>
<b>To:</b> Carter, Jack<br>
<b>Cc:</b> Owen Anderson; List<br>
<b>Subject:</b> Re: [LLVMdev] llvm-mc standalone assemblers and testing<br>
</font><br>
</div>
<div></div>
<div>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 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-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 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" target="_blank">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" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>