delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/11:01:46

Date: Sun, 23 Aug 1998 18:01:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nate Eldredge <nate AT cartsys DOT com>
cc: Endlisnis <s257m AT unb DOT ca>, djgpp AT delorie DOT com
Subject: Re: Inline asm
In-Reply-To: <35DF1418.402230C2@cartsys.com>
Message-ID: <Pine.SUN.3.91.980823175551.1451v-100000@is>
MIME-Version: 1.0

On Sat, 22 Aug 1998, Nate Eldredge wrote:

> You are thinking of `memmove', but it also uses 4-byte transfers. 

Are you sure?  As far as I could see in memmove's sources, it uses 
"rep movsb".

> (Think about it-- 1 byte at a time wouldn't help the case of overlapping
> areas.)

It helps to make the code simpler ;-).

> I think the
> reason it's slower (if indeed it is) is because it's written in C rather
> than assembly (this is from memory and may be totally wrong).  AFAIK,
> this will change with 2.02

AFAIK, memmove was always in assembler, and it doesn't change a bit in 
v2.02, at least in the latest alpha.

- Raw text -


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