<div>Hi Eli,</div>
<div>    Thanks for your reply. If I add -force-interpreter to lli, then it seems that it can not run external function like printf or malloc. Is there any easy way to solve this problem?<br><br></div>
<div class="gmail_quote">On Wed, Dec 30, 2009 at 11:26 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Wed, Dec 30, 2009 at 7:53 PM, Heming Cui <<a href="mailto:heming@cs.columbia.edu">heming@cs.columbia.edu</a>> wrote:<br>> Dear all,<br>>      I hope you enjoy your christmas! Recently I started to play lli with<br>
> bc. I found that the lli only calls the main() function in bc file and then<br>> does nothing before the main() function returns, which means that the<br>> JIT::runFunction() function is involved only once with the main() function<br>
> in bc file. If this was true, then lli does not have any control<br>> to the execution of program. Is this the case?<br><br></div>In JIT mode, yes.<br>
<div class="im"><br>>      What I was thinking lli would do is fetching each LLVM IR instruction<br>> and "execute" it with some tricks. Is there any option for JIT/lli to work<br>> like this?<br><br></div>
If you pass -force-interpreter to lli, you should get something closer<br>to what you're looking for.<br><font color="#888888"><br>-Eli<br><br></font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Heming Cui<br>