Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / stabs / Class-Instance.html
bloba0236650a09c9e771d8c546e1915d3a1b841973f
1 <html lang="en">
2 <head>
3 <title>STABS</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="STABS">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Class%20Instance">Class Instance</a>,
13 Next:<a rel="next" accesskey="n" href="Methods.html#Methods">Methods</a>,
14 Previous:<a rel="previous" accesskey="p" href="Simple-Classes.html#Simple%20Classes">Simple Classes</a>,
15 Up:<a rel="up" accesskey="u" href="Cplusplus.html#Cplusplus">Cplusplus</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Class Instance</h3>
21 <p>As shown above, describing even a simple C++ class definition is
22 accomplished by massively extending the stab format used in C to
23 describe structure types. However, once the class is defined, C stabs
24 with no modifications can be used to describe class instances. The
25 following source:
27 <pre class="example"> main () {
28 baseA AbaseA;
30 </pre>
32 <p>yields the following stab describing the class instance. It looks no
33 different from a standard C stab describing a local variable.
35 <pre class="display"> .stabs "name:type_ref(baseA)", N_LSYM, NIL, NIL, frame_ptr_offset
36 </pre>
38 <pre class="example"> .stabs "AbaseA:20",128,0,0,-20
39 </pre>
41 </body></html>