Path: utzoo!attcan!uunet!snorkelwacker!paperboy!meissner From: meissner@osf.org (Michael Meissner) Newsgroups: comp.lang.c Subject: Re: COMMONS in C Message-ID: Date: 21 Mar 90 16:06:50 GMT References: <22944@unix.cis.pitt.edu> <1990Mar19.213645.1962@utzoo.uucp> <1990Mar21.031726.18192@bpdsun1.uucp> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 20 In-reply-to: dwg@bpdsun1.uucp's message of 21 Mar 90 03:17:26 GMT In article <1990Mar21.031726.18192@bpdsun1.uucp> dwg@bpdsun1.uucp (David W. Glessner) writes: | In article <1990Mar19.213645.1962@utzoo.uucp> henry@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@osf.org phone: 617-621-8861 Open Software Foundation, 11 Cambridge Center, Cambridge, MA Catproof is an oxymoron, Childproof is nearly so