<div>Dear all,</div>
<div>    Actually, the thing I am concerned is: can "-force-interpreter" handle the clone() libc call in a program? Since the clone() libc call is written in assembly language (in clone.S in glibc), as a result, when the CLONE_VM flag is added to clone(), the child <strong>thread</strong> will call the sub routine (the first argument in the clone() libc call) directly via assembly language in clone.S, then the LLVM intepreter might lose control to the execution of the sub routine? Is this the case?<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>