Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.unix-wizards Subject: 4.?bsd 'cc' versus 'as': which one's right on text padding? Message-ID: <6046@elsie.UUCP> Date: Tue, 25-Mar-86 22:40:14 EST Article-I.D.: elsie.6046 Posted: Tue Mar 25 22:40:14 1986 Date-Received: Fri, 28-Mar-86 06:43:03 EST Followup-To: poster Organization: NIH-LEC, Bethesda, MD Lines: 13 Keywords: bsd cc as padding Nit-picking time: the 4.?bsd C compiler goes out of its way (with ".align 1" directives) to ensure that functions begin at addresses divisible by two. On the other hand, the 4.?bsd assembler thinks that aligning to addresses divisible by four is the way to go--it "rounds segments" so that they always contain some multiple of four bytes. So, wizards, is it 'cc' or 'as' that's right? Or are both wrong? Please mail replies to me. Thanks. -- UNIX is an AT&T Bell Laboratories trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Shakespeare trademarks.