emacs.d/clones/www.sbcl.org/sbcl-internals/Assembly-Routines.html

71 lines
3.1 KiB
HTML
Raw Normal View History

2023-01-18 20:30:47 +01:00
<html lang="en">
<head>
<title>Assembly Routines - SBCL Internals</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="SBCL Internals">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Calling-Convention.html#Calling-Convention" title="Calling Convention">
<link rel="next" href="Local-Calls.html#Local-Calls" title="Local Calls">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This manual is part of the SBCL software system. See the `README'
file for more information.
This manual is in the public domain and is provided with
absolutely no warranty. See the `COPYING' and `CREDITS' files for
more information.
-->
<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">
<p>
<a name="Assembly-Routines"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Local-Calls.html#Local-Calls">Local Calls</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Calling-Convention.html#Calling-Convention">Calling Convention</a>
<hr>
</div>
<!-- node-name, next, previous, up -->
<h3 class="section">2.1 Assembly Routines</h3>
<pre class="example"> ;;; The :full-call assembly-routines must use the same full-call
;;; unknown-values return convention as a normal call, as some
;;; of the routines will tail-chain to a static-function. The
;;; routines themselves, however, take all of their arguments
;;; in registers (this will typically be one or two arguments,
;;; and is one of the lower bounds on the number of argument-
;;; passing registers), and thus don't need a call frame, which
;;; simplifies things for the normal call/return case. When it
;;; is neccessary for one of the assembly-functions to call a
;;; static-function it will construct the required call frame.
;;; Also, none of the assembly-routines return other than one
;;; value, which again simplifies the return path.
;;; -- AB, 2006/Feb/05.
</pre>
<p>There are a couple of assembly-routines that implement parts of
the process of returning or tail-calling with a variable number
of values. These are <code>return-multiple</code> and <code>tail-call-variable</code> in
<samp><span class="file">src/assembly/x86/assem-rtns.lisp</span></samp>. They have their own calling
convention for invocation from a VOP, but implement various
block-move operations on the stack contents followed by a return
or tail-call operation.
<p>That's about all I have to say about the assembly-routines.
</body></html>