Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Endlisnis , djgpp AT delorie DOT com Date: Fri, 11 Sep 1998 10:16:59 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Bug in GCC? In-reply-to: <35F83D75.B9359ABB@unb.ca> Precedence: bulk Endlisnis wrote: > And this is what I get from the Disassembler window: > > add__Fii (at t2.cc:8): > 000015a0: pushl %ebp > 000015a2: inl $0x8b,%eax > 000015a4: incl %ebp > 000015a5: orb %al,(%ebx) > 000015a7: incl %ebp > 000015a9: leave > 000015aa: ret > > As you can see, I'm not getting the function confused, the label is clearly > visible, and it appear immediately before the main, in both asm and the deasm > window. AND the code does exactly what I want/expect it to do. But it just > doesn't look right from within RHIDE. It seems to get confused and think: > movl %esp,%ebp > movl 8(%ebp),%eax > addl 12(%ebp), %eax > is: > inl $0x8b,%eax > incl %ebp > orb %al,(%ebx) > incl %ebp Did you used the up arrow to scroll the window? > Can somebody tell me what the hex-code for each one of those would be? Also, > turning off the "-m486" switch generates the EXACT same code for this > function, but RHIDE seems to display it perfectly...??? Does it have anything > to do with -m486 changing the alignment of functions so RHIDE gets confused > and it's disassembler gets misaligned with the real code? RHIDE uses the same routines used by FSDB, they fail to disassemble in reverse order. Aligning the code you reduce the probabilities of fails. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013