Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

439 linhas
21KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Free Software" and "Free Software Needs
  8. Free Documentation", with the Front-Cover Texts being "A GNU Manual,"
  9. and with the Back-Cover Texts as in (a) below.
  10. (a) The FSF's Back-Cover Text is: "You are free to copy and modify
  11. this GNU Manual. Buying copies from GNU Press supports the FSF in
  12. developing GNU and promoting software freedom." -->
  13. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  16. <title>Bytecode Descriptions (Debugging with GDB)</title>
  17. <meta name="description" content="Bytecode Descriptions (Debugging with GDB)">
  18. <meta name="keywords" content="Bytecode Descriptions (Debugging with GDB)">
  19. <meta name="resource-type" content="document">
  20. <meta name="distribution" content="global">
  21. <meta name="Generator" content="makeinfo">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
  24. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  25. <link href="Agent-Expressions.html#Agent-Expressions" rel="up" title="Agent Expressions">
  26. <link href="Using-Agent-Expressions.html#Using-Agent-Expressions" rel="next" title="Using Agent Expressions">
  27. <link href="General-Bytecode-Design.html#General-Bytecode-Design" rel="prev" title="General Bytecode Design">
  28. <style type="text/css">
  29. <!--
  30. a.summary-letter {text-decoration: none}
  31. blockquote.indentedblock {margin-right: 0em}
  32. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  33. blockquote.smallquotation {font-size: smaller}
  34. div.display {margin-left: 3.2em}
  35. div.example {margin-left: 3.2em}
  36. div.lisp {margin-left: 3.2em}
  37. div.smalldisplay {margin-left: 3.2em}
  38. div.smallexample {margin-left: 3.2em}
  39. div.smalllisp {margin-left: 3.2em}
  40. kbd {font-style: oblique}
  41. pre.display {font-family: inherit}
  42. pre.format {font-family: inherit}
  43. pre.menu-comment {font-family: serif}
  44. pre.menu-preformatted {font-family: serif}
  45. pre.smalldisplay {font-family: inherit; font-size: smaller}
  46. pre.smallexample {font-size: smaller}
  47. pre.smallformat {font-family: inherit; font-size: smaller}
  48. pre.smalllisp {font-size: smaller}
  49. span.nolinebreak {white-space: nowrap}
  50. span.roman {font-family: initial; font-weight: normal}
  51. span.sansserif {font-family: sans-serif; font-weight: normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en">
  57. <a name="Bytecode-Descriptions"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Using-Agent-Expressions.html#Using-Agent-Expressions" accesskey="n" rel="next">Using Agent Expressions</a>, Previous: <a href="General-Bytecode-Design.html#General-Bytecode-Design" accesskey="p" rel="prev">General Bytecode Design</a>, Up: <a href="Agent-Expressions.html#Agent-Expressions" accesskey="u" rel="up">Agent Expressions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="Bytecode-Descriptions-1"></a>
  64. <h3 class="section">F.2 Bytecode Descriptions</h3>
  65. <p>Each bytecode description has the following form:
  66. </p>
  67. <dl compact="compact">
  68. <dt><code>add</code> (0x02): <var>a</var> <var>b</var> &rArr; <var>a+b</var></dt>
  69. <dd>
  70. <p>Pop the top two stack items, <var>a</var> and <var>b</var>, as integers; push
  71. their sum, as an integer.
  72. </p>
  73. </dd>
  74. </dl>
  75. <p>In this example, <code>add</code> is the name of the bytecode, and
  76. <code>(0x02)</code> is the one-byte value used to encode the bytecode, in
  77. hexadecimal. The phrase &ldquo;<var>a</var> <var>b</var> &rArr; <var>a+b</var>&rdquo; shows
  78. the stack before and after the bytecode executes. Beforehand, the stack
  79. must contain at least two values, <var>a</var> and <var>b</var>; since the top of
  80. the stack is to the right, <var>b</var> is on the top of the stack, and
  81. <var>a</var> is underneath it. After execution, the bytecode will have
  82. popped <var>a</var> and <var>b</var> from the stack, and replaced them with a
  83. single value, <var>a+b</var>. There may be other values on the stack below
  84. those shown, but the bytecode affects only those shown.
  85. </p>
  86. <p>Here is another example:
  87. </p>
  88. <dl compact="compact">
  89. <dt><code>const8</code> (0x22) <var>n</var>: &rArr; <var>n</var></dt>
  90. <dd><p>Push the 8-bit integer constant <var>n</var> on the stack, without sign
  91. extension.
  92. </p>
  93. </dd>
  94. </dl>
  95. <p>In this example, the bytecode <code>const8</code> takes an operand <var>n</var>
  96. directly from the bytecode stream; the operand follows the <code>const8</code>
  97. bytecode itself. We write any such operands immediately after the name
  98. of the bytecode, before the colon, and describe the exact encoding of
  99. the operand in the bytecode stream in the body of the bytecode
  100. description.
  101. </p>
  102. <p>For the <code>const8</code> bytecode, there are no stack items given before
  103. the &rArr;; this simply means that the bytecode consumes no values
  104. from the stack. If a bytecode consumes no values, or produces no
  105. values, the list on either side of the &rArr; may be empty.
  106. </p>
  107. <p>If a value is written as <var>a</var>, <var>b</var>, or <var>n</var>, then the bytecode
  108. treats it as an integer. If a value is written is <var>addr</var>, then the
  109. bytecode treats it as an address.
  110. </p>
  111. <p>We do not fully describe the floating point operations here; although
  112. this design can be extended in a clean way to handle floating point
  113. values, they are not of immediate interest to the customer, so we avoid
  114. describing them, to save time.
  115. </p>
  116. <dl compact="compact">
  117. <dt><code>float</code> (0x01): &rArr;</dt>
  118. <dd>
  119. <p>Prefix for floating-point bytecodes. Not implemented yet.
  120. </p>
  121. </dd>
  122. <dt><code>add</code> (0x02): <var>a</var> <var>b</var> &rArr; <var>a+b</var></dt>
  123. <dd><p>Pop two integers from the stack, and push their sum, as an integer.
  124. </p>
  125. </dd>
  126. <dt><code>sub</code> (0x03): <var>a</var> <var>b</var> &rArr; <var>a-b</var></dt>
  127. <dd><p>Pop two integers from the stack, subtract the top value from the
  128. next-to-top value, and push the difference.
  129. </p>
  130. </dd>
  131. <dt><code>mul</code> (0x04): <var>a</var> <var>b</var> &rArr; <var>a*b</var></dt>
  132. <dd><p>Pop two integers from the stack, multiply them, and push the product on
  133. the stack. Note that, when one multiplies two <var>n</var>-bit numbers
  134. yielding another <var>n</var>-bit number, it is irrelevant whether the
  135. numbers are signed or not; the results are the same.
  136. </p>
  137. </dd>
  138. <dt><code>div_signed</code> (0x05): <var>a</var> <var>b</var> &rArr; <var>a/b</var></dt>
  139. <dd><p>Pop two signed integers from the stack; divide the next-to-top value by
  140. the top value, and push the quotient. If the divisor is zero, terminate
  141. with an error.
  142. </p>
  143. </dd>
  144. <dt><code>div_unsigned</code> (0x06): <var>a</var> <var>b</var> &rArr; <var>a/b</var></dt>
  145. <dd><p>Pop two unsigned integers from the stack; divide the next-to-top value
  146. by the top value, and push the quotient. If the divisor is zero,
  147. terminate with an error.
  148. </p>
  149. </dd>
  150. <dt><code>rem_signed</code> (0x07): <var>a</var> <var>b</var> &rArr; <var>a modulo b</var></dt>
  151. <dd><p>Pop two signed integers from the stack; divide the next-to-top value by
  152. the top value, and push the remainder. If the divisor is zero,
  153. terminate with an error.
  154. </p>
  155. </dd>
  156. <dt><code>rem_unsigned</code> (0x08): <var>a</var> <var>b</var> &rArr; <var>a modulo b</var></dt>
  157. <dd><p>Pop two unsigned integers from the stack; divide the next-to-top value
  158. by the top value, and push the remainder. If the divisor is zero,
  159. terminate with an error.
  160. </p>
  161. </dd>
  162. <dt><code>lsh</code> (0x09): <var>a</var> <var>b</var> &rArr; <var>a&lt;&lt;b</var></dt>
  163. <dd><p>Pop two integers from the stack; let <var>a</var> be the next-to-top value,
  164. and <var>b</var> be the top value. Shift <var>a</var> left by <var>b</var> bits, and
  165. push the result.
  166. </p>
  167. </dd>
  168. <dt><code>rsh_signed</code> (0x0a): <var>a</var> <var>b</var> &rArr; <code>(signed)</code><var>a&gt;&gt;b</var></dt>
  169. <dd><p>Pop two integers from the stack; let <var>a</var> be the next-to-top value,
  170. and <var>b</var> be the top value. Shift <var>a</var> right by <var>b</var> bits,
  171. inserting copies of the top bit at the high end, and push the result.
  172. </p>
  173. </dd>
  174. <dt><code>rsh_unsigned</code> (0x0b): <var>a</var> <var>b</var> &rArr; <var>a&gt;&gt;b</var></dt>
  175. <dd><p>Pop two integers from the stack; let <var>a</var> be the next-to-top value,
  176. and <var>b</var> be the top value. Shift <var>a</var> right by <var>b</var> bits,
  177. inserting zero bits at the high end, and push the result.
  178. </p>
  179. </dd>
  180. <dt><code>log_not</code> (0x0e): <var>a</var> &rArr; <var>!a</var></dt>
  181. <dd><p>Pop an integer from the stack; if it is zero, push the value one;
  182. otherwise, push the value zero.
  183. </p>
  184. </dd>
  185. <dt><code>bit_and</code> (0x0f): <var>a</var> <var>b</var> &rArr; <var>a&amp;b</var></dt>
  186. <dd><p>Pop two integers from the stack, and push their bitwise <code>and</code>.
  187. </p>
  188. </dd>
  189. <dt><code>bit_or</code> (0x10): <var>a</var> <var>b</var> &rArr; <var>a|b</var></dt>
  190. <dd><p>Pop two integers from the stack, and push their bitwise <code>or</code>.
  191. </p>
  192. </dd>
  193. <dt><code>bit_xor</code> (0x11): <var>a</var> <var>b</var> &rArr; <var>a^b</var></dt>
  194. <dd><p>Pop two integers from the stack, and push their bitwise
  195. exclusive-<code>or</code>.
  196. </p>
  197. </dd>
  198. <dt><code>bit_not</code> (0x12): <var>a</var> &rArr; <var>~a</var></dt>
  199. <dd><p>Pop an integer from the stack, and push its bitwise complement.
  200. </p>
  201. </dd>
  202. <dt><code>equal</code> (0x13): <var>a</var> <var>b</var> &rArr; <var>a=b</var></dt>
  203. <dd><p>Pop two integers from the stack; if they are equal, push the value one;
  204. otherwise, push the value zero.
  205. </p>
  206. </dd>
  207. <dt><code>less_signed</code> (0x14): <var>a</var> <var>b</var> &rArr; <var>a&lt;b</var></dt>
  208. <dd><p>Pop two signed integers from the stack; if the next-to-top value is less
  209. than the top value, push the value one; otherwise, push the value zero.
  210. </p>
  211. </dd>
  212. <dt><code>less_unsigned</code> (0x15): <var>a</var> <var>b</var> &rArr; <var>a&lt;b</var></dt>
  213. <dd><p>Pop two unsigned integers from the stack; if the next-to-top value is less
  214. than the top value, push the value one; otherwise, push the value zero.
  215. </p>
  216. </dd>
  217. <dt><code>ext</code> (0x16) <var>n</var>: <var>a</var> &rArr; <var>a</var>, sign-extended from <var>n</var> bits</dt>
  218. <dd><p>Pop an unsigned value from the stack; treating it as an <var>n</var>-bit
  219. twos-complement value, extend it to full length. This means that all
  220. bits to the left of bit <var>n-1</var> (where the least significant bit is bit
  221. 0) are set to the value of bit <var>n-1</var>. Note that <var>n</var> may be
  222. larger than or equal to the width of the stack elements of the bytecode
  223. engine; in this case, the bytecode should have no effect.
  224. </p>
  225. <p>The number of source bits to preserve, <var>n</var>, is encoded as a single
  226. byte unsigned integer following the <code>ext</code> bytecode.
  227. </p>
  228. </dd>
  229. <dt><code>zero_ext</code> (0x2a) <var>n</var>: <var>a</var> &rArr; <var>a</var>, zero-extended from <var>n</var> bits</dt>
  230. <dd><p>Pop an unsigned value from the stack; zero all but the bottom <var>n</var>
  231. bits.
  232. </p>
  233. <p>The number of source bits to preserve, <var>n</var>, is encoded as a single
  234. byte unsigned integer following the <code>zero_ext</code> bytecode.
  235. </p>
  236. </dd>
  237. <dt><code>ref8</code> (0x17): <var>addr</var> &rArr; <var>a</var></dt>
  238. <dt><code>ref16</code> (0x18): <var>addr</var> &rArr; <var>a</var></dt>
  239. <dt><code>ref32</code> (0x19): <var>addr</var> &rArr; <var>a</var></dt>
  240. <dt><code>ref64</code> (0x1a): <var>addr</var> &rArr; <var>a</var></dt>
  241. <dd><p>Pop an address <var>addr</var> from the stack. For bytecode
  242. <code>ref</code><var>n</var>, fetch an <var>n</var>-bit value from <var>addr</var>, using the
  243. natural target endianness. Push the fetched value as an unsigned
  244. integer.
  245. </p>
  246. <p>Note that <var>addr</var> may not be aligned in any particular way; the
  247. <code>ref<var>n</var></code> bytecodes should operate correctly for any address.
  248. </p>
  249. <p>If attempting to access memory at <var>addr</var> would cause a processor
  250. exception of some sort, terminate with an error.
  251. </p>
  252. </dd>
  253. <dt><code>ref_float</code> (0x1b): <var>addr</var> &rArr; <var>d</var></dt>
  254. <dt><code>ref_double</code> (0x1c): <var>addr</var> &rArr; <var>d</var></dt>
  255. <dt><code>ref_long_double</code> (0x1d): <var>addr</var> &rArr; <var>d</var></dt>
  256. <dt><code>l_to_d</code> (0x1e): <var>a</var> &rArr; <var>d</var></dt>
  257. <dt><code>d_to_l</code> (0x1f): <var>d</var> &rArr; <var>a</var></dt>
  258. <dd><p>Not implemented yet.
  259. </p>
  260. </dd>
  261. <dt><code>dup</code> (0x28): <var>a</var> =&gt; <var>a</var> <var>a</var></dt>
  262. <dd><p>Push another copy of the stack&rsquo;s top element.
  263. </p>
  264. </dd>
  265. <dt><code>swap</code> (0x2b): <var>a</var> <var>b</var> =&gt; <var>b</var> <var>a</var></dt>
  266. <dd><p>Exchange the top two items on the stack.
  267. </p>
  268. </dd>
  269. <dt><code>pop</code> (0x29): <var>a</var> =&gt;</dt>
  270. <dd><p>Discard the top value on the stack.
  271. </p>
  272. </dd>
  273. <dt><code>pick</code> (0x32) <var>n</var>: <var>a</var> &hellip; <var>b</var> =&gt; <var>a</var> &hellip; <var>b</var> <var>a</var></dt>
  274. <dd><p>Duplicate an item from the stack and push it on the top of the stack.
  275. <var>n</var>, a single byte, indicates the stack item to copy. If <var>n</var>
  276. is zero, this is the same as <code>dup</code>; if <var>n</var> is one, it copies
  277. the item under the top item, etc. If <var>n</var> exceeds the number of
  278. items on the stack, terminate with an error.
  279. </p>
  280. </dd>
  281. <dt><code>rot</code> (0x33): <var>a</var> <var>b</var> <var>c</var> =&gt; <var>c</var> <var>a</var> <var>b</var></dt>
  282. <dd><p>Rotate the top three items on the stack. The top item (c) becomes the third
  283. item, the next-to-top item (b) becomes the top item and the third item (a) from
  284. the top becomes the next-to-top item.
  285. </p>
  286. </dd>
  287. <dt><code>if_goto</code> (0x20) <var>offset</var>: <var>a</var> &rArr;</dt>
  288. <dd><p>Pop an integer off the stack; if it is non-zero, branch to the given
  289. offset in the bytecode string. Otherwise, continue to the next
  290. instruction in the bytecode stream. In other words, if <var>a</var> is
  291. non-zero, set the <code>pc</code> register to <code>start</code> + <var>offset</var>.
  292. Thus, an offset of zero denotes the beginning of the expression.
  293. </p>
  294. <p>The <var>offset</var> is stored as a sixteen-bit unsigned value, stored
  295. immediately following the <code>if_goto</code> bytecode. It is always stored
  296. most significant byte first, regardless of the target&rsquo;s normal
  297. endianness. The offset is not guaranteed to fall at any particular
  298. alignment within the bytecode stream; thus, on machines where fetching a
  299. 16-bit on an unaligned address raises an exception, you should fetch the
  300. offset one byte at a time.
  301. </p>
  302. </dd>
  303. <dt><code>goto</code> (0x21) <var>offset</var>: &rArr;</dt>
  304. <dd><p>Branch unconditionally to <var>offset</var>; in other words, set the
  305. <code>pc</code> register to <code>start</code> + <var>offset</var>.
  306. </p>
  307. <p>The offset is stored in the same way as for the <code>if_goto</code> bytecode.
  308. </p>
  309. </dd>
  310. <dt><code>const8</code> (0x22) <var>n</var>: &rArr; <var>n</var></dt>
  311. <dt><code>const16</code> (0x23) <var>n</var>: &rArr; <var>n</var></dt>
  312. <dt><code>const32</code> (0x24) <var>n</var>: &rArr; <var>n</var></dt>
  313. <dt><code>const64</code> (0x25) <var>n</var>: &rArr; <var>n</var></dt>
  314. <dd><p>Push the integer constant <var>n</var> on the stack, without sign extension.
  315. To produce a small negative value, push a small twos-complement value,
  316. and then sign-extend it using the <code>ext</code> bytecode.
  317. </p>
  318. <p>The constant <var>n</var> is stored in the appropriate number of bytes
  319. following the <code>const</code><var>b</var> bytecode. The constant <var>n</var> is
  320. always stored most significant byte first, regardless of the target&rsquo;s
  321. normal endianness. The constant is not guaranteed to fall at any
  322. particular alignment within the bytecode stream; thus, on machines where
  323. fetching a 16-bit on an unaligned address raises an exception, you
  324. should fetch <var>n</var> one byte at a time.
  325. </p>
  326. </dd>
  327. <dt><code>reg</code> (0x26) <var>n</var>: &rArr; <var>a</var></dt>
  328. <dd><p>Push the value of register number <var>n</var>, without sign extension. The
  329. registers are numbered following GDB&rsquo;s conventions.
  330. </p>
  331. <p>The register number <var>n</var> is encoded as a 16-bit unsigned integer
  332. immediately following the <code>reg</code> bytecode. It is always stored most
  333. significant byte first, regardless of the target&rsquo;s normal endianness.
  334. The register number is not guaranteed to fall at any particular
  335. alignment within the bytecode stream; thus, on machines where fetching a
  336. 16-bit on an unaligned address raises an exception, you should fetch the
  337. register number one byte at a time.
  338. </p>
  339. </dd>
  340. <dt><code>getv</code> (0x2c) <var>n</var>: &rArr; <var>v</var></dt>
  341. <dd><p>Push the value of trace state variable number <var>n</var>, without sign
  342. extension.
  343. </p>
  344. <p>The variable number <var>n</var> is encoded as a 16-bit unsigned integer
  345. immediately following the <code>getv</code> bytecode. It is always stored most
  346. significant byte first, regardless of the target&rsquo;s normal endianness.
  347. The variable number is not guaranteed to fall at any particular
  348. alignment within the bytecode stream; thus, on machines where fetching a
  349. 16-bit on an unaligned address raises an exception, you should fetch the
  350. register number one byte at a time.
  351. </p>
  352. </dd>
  353. <dt><code>setv</code> (0x2d) <var>n</var>: <var>v</var> &rArr; <var>v</var></dt>
  354. <dd><p>Set trace state variable number <var>n</var> to the value found on the top
  355. of the stack. The stack is unchanged, so that the value is readily
  356. available if the assignment is part of a larger expression. The
  357. handling of <var>n</var> is as described for <code>getv</code>.
  358. </p>
  359. </dd>
  360. <dt><code>trace</code> (0x0c): <var>addr</var> <var>size</var> &rArr;</dt>
  361. <dd><p>Record the contents of the <var>size</var> bytes at <var>addr</var> in a trace
  362. buffer, for later retrieval by GDB.
  363. </p>
  364. </dd>
  365. <dt><code>trace_quick</code> (0x0d) <var>size</var>: <var>addr</var> &rArr; <var>addr</var></dt>
  366. <dd><p>Record the contents of the <var>size</var> bytes at <var>addr</var> in a trace
  367. buffer, for later retrieval by GDB. <var>size</var> is a single byte
  368. unsigned integer following the <code>trace</code> opcode.
  369. </p>
  370. <p>This bytecode is equivalent to the sequence <code>dup const8 <var>size</var>
  371. trace</code>, but we provide it anyway to save space in bytecode strings.
  372. </p>
  373. </dd>
  374. <dt><code>trace16</code> (0x30) <var>size</var>: <var>addr</var> &rArr; <var>addr</var></dt>
  375. <dd><p>Identical to trace_quick, except that <var>size</var> is a 16-bit big-endian
  376. unsigned integer, not a single byte. This should probably have been
  377. named <code>trace_quick16</code>, for consistency.
  378. </p>
  379. </dd>
  380. <dt><code>tracev</code> (0x2e) <var>n</var>: &rArr; <var>a</var></dt>
  381. <dd><p>Record the value of trace state variable number <var>n</var> in the trace
  382. buffer. The handling of <var>n</var> is as described for <code>getv</code>.
  383. </p>
  384. </dd>
  385. <dt><code>tracenz</code> (0x2f) <var>addr</var> <var>size</var> &rArr;</dt>
  386. <dd><p>Record the bytes at <var>addr</var> in a trace buffer, for later retrieval
  387. by GDB. Stop at either the first zero byte, or when <var>size</var> bytes
  388. have been recorded, whichever occurs first.
  389. </p>
  390. </dd>
  391. <dt><code>printf</code> (0x34) <var>numargs</var> <var>string</var> &rArr;</dt>
  392. <dd><p>Do a formatted print, in the style of the C function <code>printf</code>).
  393. The value of <var>numargs</var> is the number of arguments to expect on the
  394. stack, while <var>string</var> is the format string, prefixed with a
  395. two-byte length. The last byte of the string must be zero, and is
  396. included in the length. The format string includes escaped sequences
  397. just as it appears in C source, so for instance the format string
  398. <code>&quot;\t%d\n&quot;</code> is six characters long, and the output will consist of
  399. a tab character, a decimal number, and a newline. At the top of the
  400. stack, above the values to be printed, this bytecode will pop a
  401. &ldquo;function&rdquo; and &ldquo;channel&rdquo;. If the function is nonzero, then the
  402. target may treat it as a function and call it, passing the channel as
  403. a first argument, as with the C function <code>fprintf</code>. If the
  404. function is zero, then the target may simply call a standard formatted
  405. print function of its choice. In all, this bytecode pops 2 +
  406. <var>numargs</var> stack elements, and pushes nothing.
  407. </p>
  408. </dd>
  409. <dt><code>end</code> (0x27): &rArr;</dt>
  410. <dd><p>Stop executing bytecode; the result should be the top element of the
  411. stack. If the purpose of the expression was to compute an lvalue or a
  412. range of memory, then the next-to-top of the stack is the lvalue&rsquo;s
  413. address, and the top of the stack is the lvalue&rsquo;s size, in bytes.
  414. </p>
  415. </dd>
  416. </dl>
  417. <hr>
  418. <div class="header">
  419. <p>
  420. Next: <a href="Using-Agent-Expressions.html#Using-Agent-Expressions" accesskey="n" rel="next">Using Agent Expressions</a>, Previous: <a href="General-Bytecode-Design.html#General-Bytecode-Design" accesskey="p" rel="prev">General Bytecode Design</a>, Up: <a href="Agent-Expressions.html#Agent-Expressions" accesskey="u" rel="up">Agent Expressions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
  421. </div>
  422. </body>
  423. </html>