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">
12 Node:
<a name=
"C%20Example">C Example
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Assembly-Code.html#Assembly%20Code">Assembly Code
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"String-Field.html#String%20Field">String Field
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Overview.html#Overview">Overview
</a>
19 <h3 class=
"section">A Simple Example in C Source
</h3>
21 <p>To get the flavor of how stabs describe source information for a C
22 program, let's look at the simple program:
24 <pre class=
"example"> main()
26 printf(
"Hello world");
30 <p>When compiled with
<code>-g
</code>, the program above yields the following
31 <code>.s
</code> file. Line numbers have been added to make it easier to refer
32 to parts of the
<code>.s
</code> file in the description of the stabs that