Next: , Previous: , Up: Overview   [Contents][Index]


1.4 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.