delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <3C6206BF.3BAF19BF@yahoo.com> |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
Organization: | Ched Research |
X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp,comp.lang.c |
Subject: | Re: gcc 2.953 output - is this a bug? |
References: | <3C61E6BB DOT 7F9AD526 AT yahoo DOT com> <WOl88.110475$I8 DOT 22755763 AT news4 DOT rdc1 DOT on DOT home DOT com> |
Lines: | 28 |
Date: | Thu, 07 Feb 2002 04:51:51 GMT |
NNTP-Posting-Host: | 12.90.167.91 |
X-Complaints-To: | abuse AT worldnet DOT att DOT net |
X-Trace: | bgtnsc05-news.ops.worldnet.att.net 1013057511 12.90.167.91 (Thu, 07 Feb 2002 04:51:51 GMT) |
NNTP-Posting-Date: | Thu, 07 Feb 2002 04:51:51 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Tom St Denis wrote: > > "CBFalconer" <cbfalconer AT yahoo DOT com> wrote in message > news:3C61E6BB DOT 7F9AD526 AT yahoo DOT com... > > Please look at the following disassembly: > > > > 585: 8d 04 d2 lea (%edx,%edx,8),%eax <<*** > > 588: 8d 04 82 lea (%edx,%eax,4),%eax <<*** > > If I get this right [in NASM notation] the two lines are > > [1] lea eax,[edx+edx*8] > [2] lea eax,[edx+eax*4] > > In line [1] you get eax = edx + edx * 8 = 9*edx > > In line [2] you get eax = edx + 4*(9*edx) = 37 * edx > > since I assume edx equals the original value, this should compute 37 * h This showed up in djgpp. Unplonk. Thanks. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |