4.?bsd 'cc' versus 'as': which one's right on text padding?

Arthur David Olson ado at elsie.UUCP
Wed Mar 26 13:40:14 AEST 1986


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 at seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Shakespeare trademarks.



More information about the Comp.unix.wizards mailing list