Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / stabs / C-Example.html
blob2c5234b6f48f668b36126dadff6f2cc55f8ba6df
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="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>
16 <hr><br>
17 </div>
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");
28 </pre>
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
33 follows.
35 </body></html>