Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Help wanted: Data segment layout Message-ID: <1990Mar18.034812.16776@utzoo.uucp> Organization: U of Toronto Zoology References: <3300001@uicsgva.csg.uiuc.edu> Date: Sun, 18 Mar 90 03:48:12 GMT In article <3300001@uicsgva.csg.uiuc.edu> long@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@zoo.toronto.edu