OAR

RTEMS GNU Tools On-Line Library


C Example

PREV UP NEXT Bookshelf STABS

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.


PREV UP NEXT Bookshelf STABS

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.