www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/19/15:31:00

Xref: news-dnh.mv.net comp.os.msdos.djgpp:455
Path: news-dnh.mv.net!mv!news.sprintlink.net!EU.net!Austria.EU.net!newsfeed.ACO.net!news.iif.hu!news.sztaki.hu!news.bme.hu!ludens.elte.hu!xxx
From: xxx AT ludens DOT elte DOT hu
Newsgroups: comp.os.msdos.djgpp
Subject: SSSsPPPpEEEeDDDd !!!
Date: 19 Jun 95 13:48:19 +0200
Organization: Eotvos University, Budapest, Hungary
Lines: 35
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Hello!
I'm an asm-programmer, who has some problem.
	1:
		I DO NOT SPEAK ENGLISH. (sorry)
	2:
		I can not optimize my 486's code enough.
1:
	This is only my problem.
2:
	Look at this code-fragment: (run in p-mode)

			mov	edx,xxx
			mov	ebx,yyy		;abs(xxx-yyy) is big (i.e.>5000)
			mov	ecx,100000
			mov	al,1
		align	16
		c1:
				mov	[edx],al
				mov	[ebx],al	;xxxx
				inc	edx
				inc	ebx
			dec	ecx
			jnz	c1

	This code runs very slow.
	Remove that line which marked ;xxxx! (sorry, I do NOT speak...)
	Run this!
	It's fast.
	It's OK, but what's the matter with the original code?
	Why does it run so slowly????

	My config:	AMD 486dx2 80MHz 256kb cache

Help me , please !!!!
SEND ME AN E-MAIL !!!   (XXX AT LUDENS DOT ELTE DOT HU)

- Raw text -


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