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=
"Main%20Program">Main Program
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Source-Files.html#Source%20Files">Source Files
</a>,
14 Up:
<a rel=
"up" accesskey=
"u" href=
"Program-Structure.html#Program%20Structure">Program Structure
</a>
18 <h3 class=
"section">Main Program
</h3>
20 <p>Most languages allow the main program to have any name. The
21 <code>N_MAIN
</code> stab type tells the debugger the name that is used in this
22 program. Only the string field is significant; it is the name of
23 a function which is the main program. Most C compilers do not use this
24 stab (they expect the debugger to assume that the name is
<code>main
</code>),
25 but some C compilers emit an
<code>N_MAIN
</code> stab for the
<code>main
</code>
26 function. I'm not sure how XCOFF handles this.