<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="OWAFontStyleDivID" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear All<br>
</p>
<p>My MSc was about implementing some kind of On stack replacement in LLVM to enhance security by obfuscating running code periodically.<br>
</p>
<p>I've tried to implement this job in JIT, but I couldn't. So I implemented it in interpreter, as an initial step.<br>
</p>
<p>However, now I'm trying to make it in JIT.<br>
</p>
<p>My first step is to extract function state at an arbitrary point. So, I interrupt function at any point (from within JIT) and pause to extract state. My problem now is with state.<br>
</p>
<p>By searching I found about stackmap new intrinsic. I got idea about what it does and I think it may help greatly in my task. However, I could not find any source about how to use it exactly, specially, how to retrieve information stored in a stackmap. I'm
 not understanding the concept of intrinsics very well.​ Again, I tried to find any source that explains how intrinsic work, but I couldn't.<br>
</p>
<p>So, any help will be greatly appreciated.<br>
</p>
<p><br>
</p>
<div>
<p><br>
</p>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Regards,<br>
Marwa Yusuf<br>
Teaching Assistant - Computer Engineering Department<br>
Faculty of Engineering - Benha University<br>
E-JUST MSc Student<br>
Computer Science & Engineering Dept.</div>
</span></font></div>
</div>
</div>
</body>
</html>