From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4a212ac2372bd10e X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,4a212ac2372bd10e X-Google-Attributes: gid102b75,public From: zalman@netcom.com (Zalman Stern) Subject: Re: 21164PC demonstration/talk at Microprocessor Forum Date: 1996/11/11 Message-ID: #1/1 X-Deja-AN: 195789120 sender: zalman@netcom14.netcom.com references: <54r02t$fjc@usenet.pa.dec.com> <557hl1$srt@usenet.pa.dec.com> <327FEF6E.783A@OntheNet.com.au> <3283D700.47EB@OntheNet.com.au> followup-to: comp.arch,comp.sys.dec organization: NETCOM On-line Communication Services (408 261-4700 guest) newsgroups: comp.arch,comp.sys.dec Tony Griffiths (tonyg@OntheNet.com.au) wrote: : Zalman Stern wrote: : > I believe FX!32 is intended to provide perfect emulation of the x86 : > execution environment. A such, if a program behaves a certain way on Intel : > x86 implementations and doesn't behave that way on FX!32, then it is an : > FX!32 bug. (As Jerry Leichter said, its just like an x86 clone vendor, only : > in software rather than silicon.) : > : Ah but FX!32 is _NOT_ an x86 emulator, it's a binary (JIT?) translator. I prefer to think of FX!32 as a piece of software which, in combination with an Alpha CPU and Windows/NT, implements the Intel x86 architecture and the Win32 API. Postings from various DEC people confirm this viewpoint. : Now consider the following TRUE example of a "latent" bug- [Example deleted.] : This is the sort of problem I am referring to. A true x86 emulator : might allow code like this to continue operating but an on-the-fly port : which is what FX!32 does cannot guarantee that buggy code will continue : to operate. FX!32 is smarter than the mythical program you are imagining. As such it falls back on interpretation when it has to. (Though I expect the example given compiles into native Alpha code just fine. The Alpha code is either constrained to using the same stack layout as the x86 code or FX!32 does interprocedural optimization to notice the memory alias and generates appropriate code.) : Whose fault is it in this situation? FX!32 for not : providing the identical operating environment or the ISV's code which : has the latent bug? If FX!32 fails on the above (which I'm fairly certain it doesn't) then it is DEC's bug and they have to fix it. Bottom line: The compiler guys are smart enough to get this right... (Now if you want something tricky, lets talk about exact emulation of 80-bit floating-point, complete with exceptions. Ugh...) -Z-