COMMONS in C

Michael Meissner meissner at osf.org
Thu Mar 22 02:06:50 AEST 1990


In article <1990Mar21.031726.18192 at bpdsun1.uucp> dwg at bpdsun1.uucp
(David W. Glessner) writes:

| In article <1990Mar19.213645.1962 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
|                               in structures
| >Both K&R1 and ANSI C say the order ^ must be preserved.
| 
| Are any guarantees made about the order (i.e. addresses) of external
| variables?

Nope.  The Data General MV linker sorts global variables by alignment,
so that the items with the largest alignment come first (the C
compiler also sorts static data by alignment and size).  The VMS
linker sorts global variables alphabetically.  The System V.3 linker
allows the use of a runtime script to determine where things go.
--
Michael Meissner	email: meissner at osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA

Catproof is an oxymoron, Childproof is nearly so



More information about the Comp.lang.c mailing list