Hi Xi,<br><br>How did you compile it with clang? I ran into problems:<br><br><span style="font-family: courier new,monospace;">clang -emit-llvm -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -DMISSING_SYSCALL_NAMES -fno-builtin     -DMISSING_SYSCALL_NAMES -fno-builtin   -O2 -c -o lib_a-memcpy.o `test -f 'memcpy.S' || echo './'`memcpy.S</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:51:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % rax, (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:52:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r8 , 8 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:53:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % r9 , 16 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:54:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r10, 24 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:55:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % r11, 32 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:56:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r12, 40 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:57:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % r13, 48 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:58:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r14, 56 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:69:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % rax, 64 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:70:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r8 , 72 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:71:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % r9 , 80 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:72:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r10, 88 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:73:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % r11, 96 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:74:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r12, 104 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:75:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  movntiq % r13, 112 (% rdi)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/tmp/cc-qoxxpO.s:76:3: error: invalid instruction mnemonic 'movntiq'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  movntiq % r14, 120 (% rdi)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ^</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">make[2]: *** [lib_a-memcpy.o] Error 1</span><br><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">Thanks.</span><br style="font-family: arial,helvetica,sans-serif;">

<br><div class="gmail_quote">On Thu, Jun 23, 2011 at 6:55 AM, Xi Wang <span dir="ltr"><<a href="mailto:xi.wang@gmail.com">xi.wang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I would recommend Newlib.  It's easy to configure and compile using Clang.<br>
<br>
<a href="http://sourceware.org/newlib/" target="_blank">http://sourceware.org/newlib/</a><br>
<br>
- xi<br>
<div><div></div><div class="h5"><br>
On Jun 23, 2011, at 2:07 AM, Gregory Malecha wrote:<br>
<br>
> Hello,<br>
><br>
> I'm wondering if anyone had any success (even a small amount) compiling any variant of libc to llvm bitcode?<br>
><br>
> --<br>
> gregory malecha<br>
</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" 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><br>
</blockquote></div><br><br clear="all"><br>-- <br>gregory malecha<br>