Article View: gnu.gcc.help
Article #51114help
From: guido
Date: Fri, 02 Jul 1993 01:17
Date: Fri, 02 Jul 1993 01:17
41 lines
1543 bytes
1543 bytes
Help!. We are using the djcc version of gcc ( version 2.2) for MSDOS, and found a nasty error: the C sentence net=bias[i]; being bias a global array of floats, caused a segment violation exception. The offending code was (on a 486 machine) mov eax, some value mov ebx, [_bias] /* possible trouble */ fld [eax+ebx] /* exception raised! */ We realized that, apparently, the right code would be mov ebx, _bias We saw the assembler output from gcc and the instruction generated seemed correct: movl _bias, %ebx /*1*/ but as translated it into the above instruction. We changed /*1*/ in bp.s into leal (_bias),%ebx and the problem was overcome, at least in this place, (it appeared again in others places). Please, what can we do? The application compiled was McClelland's pdp. Thank you in advance, sincerely yours guido Guido A. Macchi guido@ifir.edu.ar
Technical Details
Message-ID:
<895fg541@ifir.edu.ar>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ifir.UUCP!guidoShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e7f801c237017e48,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-01 18:29:53 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ifir.UUCP!guido From: guido@ifir.UUCP Newsgroups: gnu.gcc.help Subject: help Date: 1 Jul 1993 21:17:10 -0400 Organization: GNUs Not Usenet Lines: 42 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <895fg541@ifir.edu.ar>