<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body bgcolor="#FFFFFF" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,
<div><br>
</div>
<div>I am first year PhD student at Stony Brook University. For one of my projects I am trying to JIT compile and run a C program containing inline assembly using MCJIT but I am not able to.</div>
<div><br>
</div>
<div>I have cloned and build LLVM-3.1. Below are more details.</div>
<div><br>
</div>
<div>Arch : x86 </div>
<div>OS :  Linux ubuntu 2.6.35-22-generic</div>
<div><br>
</div>
<div>Sample program : test_inline_asm.c</div>
<div>-------------------</div>
<div>
<div>#include <stdio.h></div>
<div>int main(){</div>
<div>    int a=0;</div>
<div>    __asm __volatile("movl $5,%%eax\t"</div>
<div>    "\n movl %%eax,%0":"=r"(a)::"cc","memory"</div>
<div>    );</div>
<div>    printf("a= %d\n",a);</div>
<div>}</div>
</div>
<div><br>
</div>
<div>Commands </div>
<div>-------------</div>
<div><b>clang -emit-llvm -S test_inline_asm.c</b></div>
<div><b>lli -use-mcjit test_inline_asm.s</b></div>
<div><br>
</div>
<div>throws,</div>
<div><br>
</div>
<div>
<div><b>LLVM ERROR: Inline asm not supported by this streamer because we don't have an asm parser for this target</b></div>
<div><br>
</div>
</div>
<div>Any pointers to what mistake I have been doing.Any help would be much appreciated.</div>
<div><br>
</div>
<div>Thanks & Regards,</div>
<div>Amit Arya</div>
</div>
<span id="skype_highlighting_settings" display="none" autoextractnumbers="1"></span><style type="text/css"></style>
</body>
</html>