Partial support for integer divisions in access vectors
[suif.git] / html / suif1_101.html
blobbdcd74e571495a932e964c085877a6669de2b2ce
1 <HTML>
2 <HEAD>
3 <!-- This HTML file has been created by texi2html 1.54
4 from suif1.texi on 28 April 1999 -->
6 <TITLE>The SUIF Version 1 Library - Symbolic Addresses</TITLE>
7 <link href="suif1_102.html" rel=Next>
8 <link href="suif1_100.html" rel=Previous>
9 <link href="suif1_toc.html" rel=ToC>
11 </HEAD>
12 <BODY>
13 <p>Go to the <A HREF="suif1_1.html">first</A>, <A HREF="suif1_100.html">previous</A>, <A HREF="suif1_102.html">next</A>, <A HREF="suif1_113.html">last</A> section, <A HREF="suif1_toc.html">table of contents</A>.
14 <P><HR><P>
17 <H2><A NAME="SEC101" HREF="suif1_toc.html#TOC101">Symbolic Addresses</A></H2>
18 <P>
19 <A NAME="IDX717"></A>
20 <A NAME="IDX718"></A>
22 </P>
23 <P>
24 <A NAME="IDX719"></A>
25 Symbolic addresses are currently only used in immediate values
26 (see section <A HREF="suif1_100.html#SEC100">Immediate Values</A>). A symbolic address has two parts, a symbol and an
27 integer offset. In many cases, the offset is set to zero, but for an
28 aggregate data structure the offset may specify the number of bits from
29 the beginning of the data structure to a particular field. The
30 <CODE>sym_addr</CODE> class defined in the <TT>`symaddr.h'</TT> and
31 <TT>`symaddr.cc'</TT> files implements these symbolic addresses.
33 </P>
34 <P>
35 <A NAME="IDX720"></A>
36 <A NAME="IDX721"></A>
37 <A NAME="IDX722"></A>
38 The <CODE>symbol</CODE> method returns a pointer to the symbol in a symbolic
39 address, and the <CODE>offset</CODE> method returns the integer offset. As
40 with most other offsets in SUIF, the offset is in <EM>bits</EM>. Be
41 careful to avoid treating this as a byte or word offset. As with
42 immediate values, there are no methods to change the contents of a
43 symbolic address. Because these are small structures, it is just as
44 easy to create new <CODE>sym_addr</CODE> objects whenever they are needed. To
45 print a symbolic address, use the <CODE>print</CODE> method.
47 </P>
49 <P><HR><P>
50 <p>Go to the <A HREF="suif1_1.html">first</A>, <A HREF="suif1_100.html">previous</A>, <A HREF="suif1_102.html">next</A>, <A HREF="suif1_113.html">last</A> section, <A HREF="suif1_toc.html">table of contents</A>.
51 </BODY>
52 </HTML>