GNU Info

Info Node: (stabs.info)C Example

(stabs.info)C Example


Next: Assembly Code Prev: String Field Up: Overview
Enter node , (file) or (file)node

A Simple Example in C Source
============================

   To get the flavor of how stabs describe source information for a C
program, let's look at the simple program:

     main()
     {
             printf("Hello world");
     }

   When compiled with `-g', the program above yields the following `.s'
file.  Line numbers have been added to make it easier to refer to parts
of the `.s' file in the description of the stabs that follows.


automatically generated by info2www version 1.2.2.9