emacs.d/clones/www.sbcl.org/sbcl-internals/Local-Calls.html

67 lines
2.8 KiB
HTML
Raw Normal View History

2023-01-18 20:30:47 +01:00
<html lang="en">
<head>
<title>Local Calls - 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="prev" href="Assembly-Routines.html#Assembly-Routines" title="Assembly Routines">
<link rel="next" href="Full-Calls.html#Full-Calls" title="Full 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="Local-Calls"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="Full-Calls.html#Full-Calls">Full Calls</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Assembly-Routines.html#Assembly-Routines">Assembly Routines</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.2 Local Calls</h3>
<p>Calls within a block, whatever a block is, can use a local
calling convention in which the compiler knows where all of the
values are to be stored, and thus can elide the check for number
of return values, stack-pointer restoration, etc. Alternately,
they can use the full unknown-values return convention while
trying to short-circuit the call convention. There is probably
some low-hanging fruit here in terms of CPU branch-prediction.
<p>The local (known-values) calling convention is implemented by
the <code>known-call-local</code> and <code>known-return</code> VOPs.
<p>Local unknown-values calls are handled at the call site by the
<code>call-local</code> and <code>mutiple-call-local</code> VOPs. The main difference
between the full call and local call protocols here is that
local calls use a different frame setup protocol, and will tend
to not use the normal frame layout for the old frame-pointer and
return-address.
</body></html>