<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">Hi John,<br>maybe if I help you I can get faster into my own problem.<br>So may I?<br>Maybe in two we could replace the inline assembly too.<br>regards,<br>dacian<br><div><span><br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-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> John Criswell <criswell@illinois.edu><br> <b><span style="font-weight: bold;">To:</span></b> Herbei Dacian <dacian_herbei@yahoo.fr> <br><b><span style="font-weight: bold;">Cc:</span></b> Konstantin Tokarev <annulen@yandex.ru>; "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 19
 September 2013, 17:37<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] LLVM virtual machine<br> </font> </div> <div class="y_msg_container"><br><div id="yiv9221856401">
  

    
  
  <div>
    <div class="yiv9221856401moz-cite-prefix">On 9/19/13 9:53 AM, Herbei Dacian
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;"><br>
        Hi Konstantin,<br>
        good point.<br>
        but I my intention is to have something like the llva project.<br>
      </div>
    </blockquote>
    <br>
    If you want something like the LLVA project for user-space
    applications, then you basically want to use LLVM as-is.  The only
    things missing are the instructions that replace certain in-line
    assembly sequences that cannot be represented by regular LLVM
    instructions or LLVM intrinsics (e.g., context switching), and
    chances are good that you don't need them unless you're supporting
    kernel code or something like a user-space pthreads library (or you
    are really pedantic about not using inline assembly code).<br>
    <br>
    As an FYI, I'm building a new version of SVA (LLVA) that works on
    64-bit x86 processors.  It supports the FreeBSD 9.0 kernel.  I
    probably won't replace all the inline assembly code in the FreeBSD
    kernel like I did for Linux 2.4.22 years ago, but most of the
    important features will be there (and are, in fact, already
    implemented).<br>
    <br>
    We plan to release this version as open-source software within the
    next year (I suppose we could release the old version, too, but
    nobody uses Linux 2.4 on x86 anymore), but I don't have a timeline
    for that yet.  My first order of business is to use the new SVA
    system to graduate.<br>
    :)<br>
    <br>
    -- John T.<br>
    <br>
    <br>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;">Basically I would like to
        define a machine that looks as if it has processors running
        natively llvm code.<br>
        And when that runs enhance the llvm byte code with some specific
        instructions.<br>
        Besides this if I make my measurements on the running of llvm
        bytecode I can test several platforms simultaneously because I
        can translate the enhancements done on llvm code in
        optimizations specific for each platform without having to redo
        the research.<br>
        regards,<br>
        dacian<br>
        <div><span><br>
          </span></div>
        <div><br>
        </div>
        <div style="font-family:arial, helvetica, sans-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>
                Konstantin Tokarev <a rel="nofollow" class="yiv9221856401moz-txt-link-rfc2396E" ymailto="mailto:annulen@yandex.ru" target="_blank" href="mailto:annulen@yandex.ru"><annulen@yandex.ru></a><br>
                <b><span style="font-weight:bold;">To:</span></b>
                Herbei Dacian <a rel="nofollow" class="yiv9221856401moz-txt-link-rfc2396E" ymailto="mailto:dacian_herbei@yahoo.fr" target="_blank" href="mailto:dacian_herbei@yahoo.fr"><dacian_herbei@yahoo.fr></a>;
                <a rel="nofollow" class="yiv9221856401moz-txt-link-rfc2396E" ymailto="mailto:llvmdev@cs.uiuc.edu" target="_blank" href="mailto:llvmdev@cs.uiuc.edu">"llvmdev@cs.uiuc.edu"</a> <a rel="nofollow" class="yiv9221856401moz-txt-link-rfc2396E" ymailto="mailto:llvmdev@cs.uiuc.edu" target="_blank" href="mailto:llvmdev@cs.uiuc.edu"><llvmdev@cs.uiuc.edu></a> <br>
                <b><span style="font-weight:bold;">Sent:</span></b>
                Thursday, 19 September 2013, 16:25<br>
                <b><span style="font-weight:bold;">Subject:</span></b>
                Re: [LLVMdev] LLVM virtual machine<br>
              </font> </div>
            <div class="yiv9221856401y_msg_container"><br>
              <br>
              19.09.2013, 18:20, "Herbei Dacian" <<a rel="nofollow" ymailto="mailto:dacian_herbei@yahoo.fr" target="_blank" href="mailto:dacian_herbei@yahoo.fr">dacian_herbei@yahoo.fr</a>>:<br>
              > Hi,<br>
              > Is there possible to run the llvm byte code purely
              interpreted with lli?<br>
              > I know there is this option but in the documentation
              is stated also that the option is not working and is not
              maintained.<br>
              > Did I understand wrong? Is it working?<br>
              > Is anyone working on this option?<br>
              > I would like to make something similar to q-emu or
              bochs.<br>
              <br>
              In this case you probably need to interpret machine code
              (or assembly language) instead of llvm bitcode.<br>
              <br>
              <br>
              -- <br>
              Regards,<br>
              Konstantin<br>
              <br>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="yiv9221856401mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
LLVM Developers mailing list
<a rel="nofollow" class="yiv9221856401moz-txt-link-abbreviated" ymailto="mailto:LLVMdev@cs.uiuc.edu" target="_blank" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a rel="nofollow" class="yiv9221856401moz-txt-link-freetext" target="_blank" href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a>
<a rel="nofollow" class="yiv9221856401moz-txt-link-freetext" target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </div>

</div><br><br></div> </div> </div>  </div></body></html>