Xref: news2.mv.net comp.os.msdos.djgpp:3669 From: klee AT mistress DOT informatik DOT unibw-muenchen DOT de (Herbert Kleebauer) Newsgroups: comp.os.msdos.djgpp Subject: Re: GAS bugs Date: Wed, 8 May 1996 10:52:38 Organization: Fakultaet fuer Informatik, Universitaet der BW Muenchen Lines: 14 Message-ID: References: <199605060827 DOT EAA00632 AT delorie DOT com> NNTP-Posting-Host: pc1510a.informatik.unibw-muenchen.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <199605060827 DOT EAA00632 AT delorie DOT com> Martynas Kunigelis writes: >From: Martynas Kunigelis >Subject: GAS bugs >Date: Mon, 6 May 1996 15:19:53 GMT >I've noticed one more thing: if you write pushw %ds, GAS generates an extra >16-bit opcode prefix 0x66, which is unnecessary with segment registers. >Still, if you write push %ds, GAS acts right. So: do not use the operand size pushw %ds saves 16 bit on the stack (stackpointer is decremented by 2) pushl %ds saves 32 bit on the stack (ds is stored in the low word, the high word is undefined) Herbert Kleebauer