<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div>Dear Ciao, Duncan,</div><div><br></div>I am using linux--Intel X86-64. Do I need to implement an asm parser for LLVM JIT myself or there exists some tools for it? Thank you.<div><br></div><div>Best</div><div>Andy</div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="plainMail">Hi Andy,<br><br>On 25/09/12 14:19, Zhoujinguo wrote:<br>> Sorry that I have implemented nothing for it.<br><br>inline asm won't work without an asm parser, which is something that knows how<br>to turn assembler strings like "mov %eax, %ebx" into opcodes, i.e. the numbers<br>which, when placed into memory, cause the processor to execute the<br>"mov %eax, %ebx" operation. After all, an "inline asm" means an assembler<br>string like "mov %eax, %ebx", and for lli to JIT that, i.e. transform it on<br>the
fly into opcodes for the processor to execute, some kind of asm parser<br>is clearly needed. If there isn't one for your processor then someone will<br>have to add one...<br><br> aget is not my own project which<br>> is a public project of paralell "wget".<br><br>By "target" I didn't mean the kind of program you are trying to JIT, I mean the<br>hardware (processor) you are running lli on. Is it intel (x86, x86-64), ARM,<br>something else?<br><br>Ciao, Duncan.<br><br> I only want to use it as a common<br>> benchmark.<br>><br>> Do I need to implement anything for it?<br>><br>> Thank you<br>><br>> Best<br>> Andy<br>><br>><br>> Hi Andy,<br>><br>> On 25/09/12 12:10, Zhoujinguo wrote:<br>> ><br>> > Thank you for replying.<br>> ><br>> > The
target is "aget" which is attached. The compiling shell is also attached.<br>><br>> since this seems to be your own custom target I ask: did you implement an asm<br>> parser for your target?<br>><br>> Best wishes, Duncan.<br>><br>> ><br>> > Best<br>> > Andy<br>> ><br>> ><br>> > > If I use "-use-mcjit" argument, the error message changes to "LLVM<br>> ERROR:<br>> > > Inline asm not supported by this streamer because we don't have an<br>> asm parser<br>> > > for this target"<br>> ><br>>
> What's your target? Please attach your example code so others can<br>> > reproduce your problem. :)<br>> ><br>> > Regards,<br>> > chenwj<br>> ><br>> > --<br>> > Wei-Ren Chen (陳韋任)<br>> > Computer Systems Lab, Institute of Information Science,<br>> > Academia Sinica, Taiwan (R.O.C.)<br>> > Tel:886-2-2788-3799 #1667<br>> > Homepage: <a href="http://people.cs.nctu.edu.tw/~chenwj"
target="_blank">http://people.cs.nctu.edu.tw/~chenwj</a><br>> <<a href="http://people.cs.nctu.edu.tw/%7Echenwj" target="_blank">http://people.cs.nctu.edu.tw/%7Echenwj</a>><br>> > <<a href="http://people.cs.nctu.edu.tw/%7Echenwj" target="_blank">http://people.cs.nctu.edu.tw/%7Echenwj</a>><br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > LLVM Developers mailing list<br>> > <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="/mc/compose?to=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>> ><br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="/mc/compose?to=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>><br><br></div></blockquote></div></td></tr></table>