94 lines
		
	
	
	
		
			4.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			94 lines
		
	
	
	
		
			4.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								<html lang="en">
							 | 
						||
| 
								 | 
							
								<head>
							 | 
						||
| 
								 | 
							
								<title>Directives-i960 - Using as</title>
							 | 
						||
| 
								 | 
							
								<meta http-equiv="Content-Type" content="text/html">
							 | 
						||
| 
								 | 
							
								<meta name="description" content="Using as">
							 | 
						||
| 
								 | 
							
								<meta name="generator" content="makeinfo 4.7">
							 | 
						||
| 
								 | 
							
								<link title="Top" rel="start" href="index.html#Top">
							 | 
						||
| 
								 | 
							
								<link rel="up" href="i960_002dDependent.html#i960_002dDependent" title="i960-Dependent">
							 | 
						||
| 
								 | 
							
								<link rel="prev" href="Floating-Point_002di960.html#Floating-Point_002di960" title="Floating Point-i960">
							 | 
						||
| 
								 | 
							
								<link rel="next" href="Opcodes-for-i960.html#Opcodes-for-i960" title="Opcodes for i960">
							 | 
						||
| 
								 | 
							
								<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
							 | 
						||
| 
								 | 
							
								<!--
							 | 
						||
| 
								 | 
							
								This file documents the GNU Assembler "as".
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
							 | 
						||
| 
								 | 
							
								2006, 2007 Free Software Foundation, Inc.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Permission is granted to copy, distribute and/or modify this document
							 | 
						||
| 
								 | 
							
								under the terms of the GNU Free Documentation License, Version 1.1
							 | 
						||
| 
								 | 
							
								or any later version published by the Free Software Foundation;
							 | 
						||
| 
								 | 
							
								with no Invariant Sections, with no Front-Cover Texts, and with no
							 | 
						||
| 
								 | 
							
								Back-Cover Texts.  A copy of the license is included in the
							 | 
						||
| 
								 | 
							
								section entitled ``GNU Free Documentation License''.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								man end-->
							 | 
						||
| 
								 | 
							
								<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; } 
							 | 
						||
| 
								 | 
							
								--></style>
							 | 
						||
| 
								 | 
							
								</head>
							 | 
						||
| 
								 | 
							
								<body>
							 | 
						||
| 
								 | 
							
								<div class="node">
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								<a name="Directives_002di960"></a>Next: <a rel="next" accesskey="n" href="Opcodes-for-i960.html#Opcodes-for-i960">Opcodes for i960</a>,
							 | 
						||
| 
								 | 
							
								Previous: <a rel="previous" accesskey="p" href="Floating-Point_002di960.html#Floating-Point_002di960">Floating Point-i960</a>,
							 | 
						||
| 
								 | 
							
								Up: <a rel="up" accesskey="u" href="i960_002dDependent.html#i960_002dDependent">i960-Dependent</a>
							 | 
						||
| 
								 | 
							
								<hr><br>
							 | 
						||
| 
								 | 
							
								</div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<h4 class="subsection">9.15.3 i960 Machine Directives</h4>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<p><a name="index-machine-directives_002c-i960-988"></a><a name="index-i960-machine-directives-989"></a>
							 | 
						||
| 
								 | 
							
								     
							 | 
						||
| 
								 | 
							
								<a name="index-_0040code_007bbss_007d-directive_002c-i960-990"></a>
							 | 
						||
| 
								 | 
							
								<dl><dt><code>.bss </code><var>symbol</var><code>, </code><var>length</var><code>, </code><var>align</var><dd>Reserve <var>length</var> bytes in the bss section for a local <var>symbol</var>,
							 | 
						||
| 
								 | 
							
								aligned to the power of two specified by <var>align</var>.  <var>length</var> and
							 | 
						||
| 
								 | 
							
								<var>align</var> must be positive absolute expressions.  This directive
							 | 
						||
| 
								 | 
							
								differs from <span class="samp">.lcomm</span> only in that it permits you to specify
							 | 
						||
| 
								 | 
							
								an alignment.  See <a href="Lcomm.html#Lcomm"><code>.lcomm</code></a>. 
							 | 
						||
| 
								 | 
							
								</dl>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     
							 | 
						||
| 
								 | 
							
								<a name="index-_0040code_007bextended_007d-directive_002c-i960-991"></a>
							 | 
						||
| 
								 | 
							
								<dl><dt><code>.extended </code><var>flonums</var><dd><code>.extended</code> expects zero or more flonums, separated by commas; for
							 | 
						||
| 
								 | 
							
								each flonum, <span class="samp">.extended</span> emits an <span class="sc">ieee</span> extended-format (80-bit)
							 | 
						||
| 
								 | 
							
								floating-point number.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <p><a name="index-_0040code_007bleafproc_007d-directive_002c-i960-992"></a><br><dt><code>.leafproc </code><var>call-lab</var><code>, </code><var>bal-lab</var><dd>You can use the <span class="samp">.leafproc</span> directive in conjunction with the
							 | 
						||
| 
								 | 
							
								optimized <code>callj</code> instruction to enable faster calls of leaf
							 | 
						||
| 
								 | 
							
								procedures.  If a procedure is known to call no other procedures, you
							 | 
						||
| 
								 | 
							
								may define an entry point that skips procedure prolog code (and that does
							 | 
						||
| 
								 | 
							
								not depend on system-supplied saved context), and declare it as the
							 | 
						||
| 
								 | 
							
								<var>bal-lab</var> using <span class="samp">.leafproc</span>.  If the procedure also has an
							 | 
						||
| 
								 | 
							
								entry point that goes through the normal prolog, you can specify that
							 | 
						||
| 
								 | 
							
								entry point as <var>call-lab</var>.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <p>A <span class="samp">.leafproc</span> declaration is meant for use in conjunction with the
							 | 
						||
| 
								 | 
							
								optimized call instruction <span class="samp">callj</span>; the directive records the data
							 | 
						||
| 
								 | 
							
								needed later to choose between converting the <span class="samp">callj</span> into a
							 | 
						||
| 
								 | 
							
								<code>bal</code> or a <code>call</code>.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <p><var>call-lab</var> is optional; if only one argument is present, or if the
							 | 
						||
| 
								 | 
							
								two arguments are identical, the single argument is assumed to be the
							 | 
						||
| 
								 | 
							
								<code>bal</code> entry point.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <p><a name="index-_0040code_007bsysproc_007d-directive_002c-i960-993"></a><br><dt><code>.sysproc </code><var>name</var><code>, </code><var>index</var><dd>The <span class="samp">.sysproc</span> directive defines a name for a system procedure. 
							 | 
						||
| 
								 | 
							
								After you define it using <span class="samp">.sysproc</span>, you can use <var>name</var> to
							 | 
						||
| 
								 | 
							
								refer to the system procedure identified by <var>index</var> when calling
							 | 
						||
| 
								 | 
							
								procedures with the optimized call instruction <span class="samp">callj</span>.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <p>Both arguments are required; <var>index</var> must be between 0 and 31
							 | 
						||
| 
								 | 
							
								(inclusive). 
							 | 
						||
| 
								 | 
							
								</dl>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								   </body></html>
							 | 
						||
| 
								 | 
							
								
							 |