delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/20/15:10:00

Message-Id: <m0xNHU9-000S25C@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
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
Subject: Re: [Q] Which is faster?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019