123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <html lang="en">
- <head>
- <title>Emulation Primitives - avram - a virtual machine code interpreter</title>
- <meta http-equiv="Content-Type" content="text/html">
- <meta name="description" content="avram - a virtual machine code interpreter">
- <meta name="generator" content="makeinfo 4.13">
- <link title="Top" rel="start" href="index.html#Top">
- <link rel="up" href="Library-Reference.html#Library-Reference" title="Library Reference">
- <link rel="prev" href="Profiling.html#Profiling" title="Profiling">
- <link rel="next" href="External-Library-Maintenance.html#External-Library-Maintenance" title="External Library Maintenance">
- <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <style type="text/css"><!--
- pre.display { font-family:inherit }
- pre.format { font-family:inherit }
- pre.smalldisplay { font-family:inherit; font-size:smaller }
- pre.smallformat { font-family:inherit; font-size:smaller }
- pre.smallexample { font-size:smaller }
- pre.smalllisp { font-size:smaller }
- span.sc { font-variant:small-caps }
- span.roman { font-family:serif; font-weight:normal; }
- span.sansserif { font-family:sans-serif; font-weight:normal; }
- --></style>
- </head>
- <body>
- <div class="node">
- <a name="Emulation-Primitives"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="External-Library-Maintenance.html#External-Library-Maintenance">External Library Maintenance</a>,
- Previous: <a rel="previous" accesskey="p" href="Profiling.html#Profiling">Profiling</a>,
- Up: <a rel="up" accesskey="u" href="Library-Reference.html#Library-Reference">Library Reference</a>
- <hr>
- </div>
- <h3 class="section">3.8 Emulation Primitives</h3>
- <p>The functions documented in this section can be used to take very
- specific control over the evaluation of virtual code applications. It is
- unlikely that a client program will have any need for them unless it
- aims to replace or extend the <code>avm_apply</code> function.
- <p>The virtual machine is somewhat removed from a conventional von Neumann
- model of computation, so emulating it in C or any other imperative
- language is less straightforward than one would prefer. An elaborate
- system of interdependent data structures is used to represent partially
- evaluated computations, which does not particularly lend itself to a
- convenient, modular API. The abstraction provided by the functions in
- this section is limited mainly to that of simple memory management and
- stack operations. Consequently, a developer wishing to build on them
- effectively would need to <em>grok</em> the data structures involved,
- which are described in some detail.
- <ul class="menu">
- <li><a accesskey="1" href="Lists-of-Pairs-of-Ports.html#Lists-of-Pairs-of-Ports">Lists of Pairs of Ports</a>
- <li><a accesskey="2" href="Ports-and-Packets.html#Ports-and-Packets">Ports and Packets</a>
- <li><a accesskey="3" href="Instruction-Stacks.html#Instruction-Stacks">Instruction Stacks</a>
- </ul>
- </body></html>
|