Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: good AT soback DOT kornet DOT nm DOT kr, djgpp AT delorie DOT com Date: Mon, 20 Oct 1997 16:07:25 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: [Q] Which is faster? Precedence: bulk good AT soback DOT kornet DOT nm DOT kr wrote: > I have a question in DJGPP inline assembly. > Among MOVW %AX, %BX, MOVL %EAX, %EBX > > This is just about speed, not others. The 32 bits version is faster under DJGPP because even when 386/486 times sheet states that takes the same time the MOVW uses more memory reducing the cache effectivity. It takes more memory because the MOVW have the same opcode as MOVL, but with a prefix to indicate that the next operation is a 16 bits one. Of course P5 and specially P6 are slower in 16 bits. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013