Help wanted: Data segment layout
Henry Spencer
henry at utzoo.uucp
Sun Mar 18 13:48:12 AEST 1990
In article <3300001 at uicsgva.csg.uiuc.edu> long at uicsgva.csg.uiuc.edu writes:
>I would like to know the data segment layout of a C program
>on Unix (Sun OS). For the following example, I found some extra
>variables were inserted before the first global variables ...
>Now my questions are: does anyone know what they are?
>Does they vary from program to program?
They probably include things like string constants, tables the compiler
generates for switch statements, variables used by run-time startup
machinery, etc. There is potentially quite a bit going on below the
surface, varying from program to program, compiler to compiler, and
release to release.
--
MSDOS, abbrev: Maybe SomeDay | Henry Spencer at U of Toronto Zoology
an Operating System. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list