<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div><span><br></span></div><div>Hello Tim,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I attached the assembly file, the java file and the running script file. I hope the variable names can be identified.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Thanks<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style:
 normal;"><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Alexandru Ionut Diaconescu <cyrusthevirus001x@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Tim Northover <t.p.northover@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, June 25, 2013 5:58 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] vmkit variables internal representation<br> </font> </div> <div class="y_msg_container"><br><div id="yiv3979418966"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times,
 serif;font-size:10pt;">Hi Tim,<br><br>Thank you for your answer. Tomorrow morning I will update my question after further investigation based on your advice and with the .ll. <br><div><span><br></span></div><div><br></div>  <div style="font-family:times new roman, new york, times, serif;font-size:10pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Tim Northover <t.p.northover@gmail.com><br> <b><span style="font-weight:bold;">To:</span></b> Alexandru Ionut Diaconescu <cyrusthevirus001x@yahoo.com> <br><b><span style="font-weight:bold;">Cc:</span></b> "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight:bold;">Sent:</span></b> Tuesday, June 25, 2013 5:50
 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LLVMdev] vmkit variables internal representation<br> </font> </div> <div class="yiv3979418966y_msg_container"><br>Hi Alexandru,<br><br>> For the local variable Q, it seems that the compiler is optimizing and<br>> considering store i32 10691, i32* .... (into balance). Do you know how I can<br>> compile the code for preserving Q?<br><br>You've probably got to convince the compiler not to optimise since<br>eliminating those variables is probably one of the simpler things that<br>goes on during optimisation. I'd expect the unoptimised code to have<br>"alloca" instructions inside the function which represent those<br>variables.<br><br>I'm afraid I don't know the javac command-line option to do that<br>though. Your questions may be better answered on a Java list dealing<br>with that compiler.<br><br>> Ok, in the bytecode there is no string "P", "balance" etc. I assume they
 are<br>>
 preserved in internal globals.<br><br>Could be. Doesn't java use UTF-16 for its strings? If so, I'd be<br>looking for arrays of i16 for my names. Assuming they're there at all,<br>of course (depends on Java API, ABI and possibly optimisations LLVM<br>was able to perform).<br><br>If you post a full .ll file we may be able to say more. Or someone may<br>be along who knows the Java LLVM compiler off the top of their head.<br><br>Cheers.<br><br>Tim.<br><br><br></div> </div> </div>  </div></div></div><br>_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto: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> </div> </div> 
 </div></body></html>