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 - Base Types
</TITLE>
7 <link href=
"suif1_62.html" rel=Next
>
8 <link href=
"suif1_60.html" rel=Previous
>
9 <link href=
"suif1_toc.html" rel=ToC
>
13 <p>Go to the
<A HREF=
"suif1_1.html">first
</A>,
<A HREF=
"suif1_60.html">previous
</A>,
<A HREF=
"suif1_62.html">next
</A>,
<A HREF=
"suif1_113.html">last
</A> section,
<A HREF=
"suif1_toc.html">table of contents
</A>.
17 <H2><A NAME=
"SEC61" HREF=
"suif1_toc.html#TOC61">Base Types
</A></H2>
25 The
<CODE>TYPE_VOID
</CODE>,
<CODE>TYPE_INT
</CODE>,
<CODE>TYPE_FLOAT
</CODE>, and
26 <CODE>TYPE_ENUM
</CODE> operators define the base types. Whereas other kinds
27 of types are defined in terms of existing types, the base types stand
28 alone. The
<CODE>base_type
</CODE> class is derived from
<CODE>type_node
</CODE> to
29 hold the base types. It has only two fields: the size and a flag to
30 indicate whether integer and enumerated types are signed or unsigned.
37 The
<CODE>set_size
</CODE> method sets the size of a base type in bits. Types
38 with a
<CODE>TYPE_VOID
</CODE> operator should always have a size of zero.
39 Integer and floating-point types can have any sizes, although normally
40 the sizes are restricted by the target machine parameters (see section
<A HREF=
"suif1_103.html#SEC103">Target Machine Parameters
</A>). Other sizes may cause the code generator to fail.
41 For integer and enumerated types, the
<CODE>is_signed
</CODE> method is used to
42 check the flag that indicates whether they are signed or unsigned. The
43 <CODE>set_signed
</CODE> method changes the value of the flag.
47 Besides the features that they share with the other base types,
48 enumerated types have other fields and methods used to record the names
49 and values of their members. See section
<A HREF=
"suif1_66.html#SEC66">Enumerated Types
</A>.
54 <p>Go to the
<A HREF=
"suif1_1.html">first
</A>,
<A HREF=
"suif1_60.html">previous
</A>,
<A HREF=
"suif1_62.html">next
</A>,
<A HREF=
"suif1_113.html">last
</A> section,
<A HREF=
"suif1_toc.html">table of contents
</A>.