Sender: bcurrie AT tssc DOT co DOT nz Message-ID: <34B91FA7.341C@tssc.co.nz> Date: Mon, 12 Jan 1998 08:38:15 +1300 From: Bill Currie Organization: Telecommunication Systems Support Centre MIME-Version: 1.0 To: DJ Delorie CC: eliz AT is DOT elta DOT co DOT il, andrewc AT rosemail DOT rose DOT hp DOT com, djgpp-workers AT delorie DOT com Subject: Re: Stack Alignment References: <199801111910 DOT OAA25392 AT delorie DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk DJ Delorie wrote: > movw %ds, %dx /* set stack */ > movw %dx, %ss > >>> andb $0xf8, %eax /* align to 8-byte boundary */ > movl %eax, %esp Hey! gas is going to barf on that!!! (operand size mismatch) that should be either: andb $0xf8,%al or andw $0xfff8,%ax or andl $0xfffffff8,%eax I'm not certain, but I think gas will use the sign extension form if another register is used. Bill -- Leave others their otherness