User-Manual.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
  2. <html>
  3. <!-- Created on December 10, 2012 by texi2html 1.82
  4. texi2html was written by:
  5. Lionel Cons <[email protected]> (original author)
  6. Karl Berry <[email protected]>
  7. Olaf Bachmann <[email protected]>
  8. and many others.
  9. Maintained by: Many creative people.
  10. Send bugs and suggestions to <[email protected]>
  11. -->
  12. <head>
  13. <title>avram - a virtual machine code interpreter: 1. User Manual</title>
  14. <meta name="description" content="avram - a virtual machine code interpreter: 1. User Manual">
  15. <meta name="keywords" content="avram - a virtual machine code interpreter: 1. User Manual">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="texi2html 1.82">
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <style type="text/css">
  21. <!--
  22. a.summary-letter {text-decoration: none}
  23. blockquote.smallquotation {font-size: smaller}
  24. pre.display {font-family: serif}
  25. pre.format {font-family: serif}
  26. pre.menu-comment {font-family: serif}
  27. pre.menu-preformatted {font-family: serif}
  28. pre.smalldisplay {font-family: serif; font-size: smaller}
  29. pre.smallexample {font-size: smaller}
  30. pre.smallformat {font-family: serif; font-size: smaller}
  31. pre.smalllisp {font-size: smaller}
  32. span.roman {font-family:serif; font-weight:normal;}
  33. span.sansserif {font-family:sans-serif; font-weight:normal;}
  34. ul.toc {list-style: none}
  35. -->
  36. </style>
  37. </head>
  38. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  39. <a name="User-Manual"></a>
  40. <table cellpadding="1" cellspacing="1" border="0">
  41. <tr><td valign="middle" align="left">[<a href="Preface.html#Preface" title="Previous section in reading order"> &lt; </a>]</td>
  42. <td valign="middle" align="left">[<a href="General-Options.html#General-Options" title="Next section in reading order"> &gt; </a>]</td>
  43. <td valign="middle" align="left"> &nbsp; </td>
  44. <td valign="middle" align="left">[<a href="Preface.html#Preface" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  45. <td valign="middle" align="left">[<a href="avram.html#Top" title="Up section"> Up </a>]</td>
  46. <td valign="middle" align="left">[<a href="Virtual-Machine-Specification.html#Virtual-Machine-Specification" title="Next chapter"> &gt;&gt; </a>]</td>
  47. <td valign="middle" align="left"> &nbsp; </td>
  48. <td valign="middle" align="left"> &nbsp; </td>
  49. <td valign="middle" align="left"> &nbsp; </td>
  50. <td valign="middle" align="left"> &nbsp; </td>
  51. <td valign="middle" align="left">[<a href="avram.html#Top" title="Cover (top) of document">Top</a>]</td>
  52. <td valign="middle" align="left">[<a href="avram_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  53. <td valign="middle" align="left">[<a href="Function-Index.html#Function-Index" title="Index">Index</a>]</td>
  54. <td valign="middle" align="left">[<a href="avram_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  55. </tr></table>
  56. <hr size="1">
  57. <a name="User-Manual-1"></a>
  58. <h1 class="chapter">1. User Manual</h1>
  59. <p>This chapter provides the basic information on how to use <code>avram</code>
  60. to execute virtual machine code applications.
  61. </p>
  62. <p><code>avram</code> is invoked
  63. by typing a command at a shell prompt in one of these three forms.
  64. </p>
  65. <table><tr><td>&nbsp;</td><td><pre class="display"><kbd>avram</kbd> [<em>general options</em>]
  66. <kbd>avram</kbd> [<em>filter mode options</em>] <var>codefile</var>[<kbd>.avm</kbd>]
  67. <kbd>avram</kbd> [<em>parameter mode options</em>] <var>codefile</var>[<kbd>.avm</kbd>] [<em>parameters</em>]
  68. </pre></td></tr></table>
  69. <p>In the second case, <code>avram</code> reads from standard input, and may
  70. of course appear as part of commands such as
  71. <a name="index-standard-input"></a>
  72. </p>
  73. <table><tr><td>&nbsp;</td><td><pre class="display"><kbd>avram</kbd> [<em>filter mode options</em>] <var>codefile</var>[<kbd>.avm</kbd>] &lt; <var>inputfile</var>
  74. <var>anothercommand</var> | <kbd>avram</kbd> [<em>filter mode options</em>] <var>codefile</var>[<kbd>.avm</kbd>]
  75. </pre></td></tr></table>
  76. <p>When <code>avram</code> is invoked with the name of an input file (with a
  77. default extension <kbd>.avm</kbd>), it reads virtual machine code from the
  78. file and executes it on the host machine.
  79. </p>
  80. <a name="index-functional-programming-1"></a>
  81. <p>The virtual code format used by <code>avram</code> is designed
  82. to support the features of functional or applicative programming
  83. languages. Although this chapter documents only the usage of
  84. <code>avram</code> and not the internals, it will be helpful to keep in mind
  85. that the virtual machine code expresses a mathematical function rather
  86. than a program in the conventional sense. As such, it performs no action
  87. directly, but may be applied in a choice of ways by the user of
  88. <code>avram</code> according to the precise operation required.
  89. </p>
  90. <p>The following sections provide information in greater detail about
  91. usage and diagnostics.
  92. </p>
  93. <table class="menu" border="0" cellspacing="0">
  94. <tr><td align="left" valign="top"><a href="General-Options.html#General-Options">1.1 General Options</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> getting help and version information
  95. </td></tr>
  96. <tr><td align="left" valign="top"><a href="Modes-of-Operation.html#Modes-of-Operation">1.2 Modes of Operation</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> stream processing or file oriented
  97. </td></tr>
  98. <tr><td align="left" valign="top"><a href="Filter-Mode-Options.html#Filter-Mode-Options">1.3 Filter Mode Options</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> how to run a stream processor
  99. </td></tr>
  100. <tr><td align="left" valign="top"><a href="Parameter-Mode-Options.html#Parameter-Mode-Options">1.4 Parameter Mode Options</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> how to have an application use files
  101. </td></tr>
  102. <tr><td align="left" valign="top"><a href="Command-Line-Syntax.html#Command-Line-Syntax">1.5 Command Line Syntax</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> application-independent conventions
  103. </td></tr>
  104. <tr><td align="left" valign="top"><a href="Diagnostics.html#Diagnostics">1.6 Diagnostics</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> explanation of error messages
  105. </td></tr>
  106. <tr><td align="left" valign="top"><a href="Security.html#Security">1.7 Security</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> running untrusted applications
  107. </td></tr>
  108. <tr><td align="left" valign="top"><a href="Example-Script.html#Example-Script">1.8 Example Script</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> how to unburden the end users
  109. </td></tr>
  110. <tr><td align="left" valign="top"><a href="Files.html#Files">1.9 Files</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> miscellaneous files used
  111. </td></tr>
  112. <tr><td align="left" valign="top"><a href="Environment.html#Environment">1.10 Environment</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> environment variables
  113. </td></tr>
  114. <tr><td align="left" valign="top"><a href="Bugs.html#Bugs">1.11 Bugs</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"> hall of shame
  115. </td></tr>
  116. </table>
  117. <hr size="1">
  118. <table cellpadding="1" cellspacing="1" border="0">
  119. <tr><td valign="middle" align="left">[<a href="Preface.html#Preface" title="Previous section in reading order"> &lt; </a>]</td>
  120. <td valign="middle" align="left">[<a href="General-Options.html#General-Options" title="Next section in reading order"> &gt; </a>]</td>
  121. <td valign="middle" align="left"> &nbsp; </td>
  122. <td valign="middle" align="left">[<a href="Preface.html#Preface" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  123. <td valign="middle" align="left">[<a href="avram.html#Top" title="Up section"> Up </a>]</td>
  124. <td valign="middle" align="left">[<a href="Virtual-Machine-Specification.html#Virtual-Machine-Specification" title="Next chapter"> &gt;&gt; </a>]</td>
  125. <td valign="middle" align="left"> &nbsp; </td>
  126. <td valign="middle" align="left"> &nbsp; </td>
  127. <td valign="middle" align="left"> &nbsp; </td>
  128. <td valign="middle" align="left"> &nbsp; </td>
  129. <td valign="middle" align="left">[<a href="avram.html#Top" title="Cover (top) of document">Top</a>]</td>
  130. <td valign="middle" align="left">[<a href="avram_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  131. <td valign="middle" align="left">[<a href="Function-Index.html#Function-Index" title="Index">Index</a>]</td>
  132. <td valign="middle" align="left">[<a href="avram_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  133. </tr></table>
  134. <p>
  135. <font size="-1">
  136. This document was generated on <i>December 10, 2012</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.82</i></a>.
  137. </font>
  138. <br>
  139. </p>
  140. </body>
  141. </html>