From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,67c0861f94c421f5 X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,67c0861f94c421f5 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,8b31f34a0dbb1725 X-Google-Attributes: gid102b75,public From: "Steve Loughran" Subject: Re: Alpha or Merced: which will run x86 code faster? (was Re: Integer sizes for NT/64 Date: 1998/07/09 Message-ID: #1/1 X-Deja-AN: 369812139 Sender: news@hplb.hpl.hp.com (Usenet News Administrator) References: <3583BF17.61F0687@knobisoft.de> <3583cd68.35246011@news.primenet.com> <359C63E9.60B9@EasyInternet.net> <359D1959.5D0BF6D2@videotron.ca> <6njgl7$gc6$1@server05.icaen.uiowa.edu> Organization: Hewlett-Packard Laboratories, Bristol, England Newsgroups: comp.arch,comp.sys.dec,comp.sys.intel X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3 Doug Siebert wrote in message <6njgl7$gc6$1@server05.icaen.uiowa.edu>... > >Anyway, don't forget that sticking an x86 and PA-RISC on Merced isn't >going to be all that hard when you think about it. They only need to >handle user level code, so all of the x86 gunk with segmentation, rings, >interrupts, etc. goes away, as does all the segmentation and special >registers in PA-RISC. You already have the registers, just use some of >your 128 registers automatically when running another instruction set. >Ditto for cache. You probably don't even implement all the instructions, >you can trap on some of the rarely used or oddball/difficult ones with >little impact on performance. If the CPU needs to run NT and OS2 native then segments and kernel side stuff will have to be handled. Although user apps don't mess with segment registers no more, the OSes do. For example NT uses the FS register as some pointer to a thread specific data structure. Hopefully MMX and Katmai instructions will transfer relatively simply. >You skip stupid stuff like the ability >to run 16 bit code on x86, hopefully no one will miss running Windows >3.1 stuff on Merced :) I also fear that Win16 code will still be around -but that doesn't mean it needs to be supported in hardware. The RISC implementations of NT all emulated Win16 -I believe it is up to the HAL authors to provide a library emulating each of the opcodes found in Win16 code built for a 486. A native Merced implementation of the emulation would seem to be the appropriate tactic. I think that NT implements most (all?) win16 api calls by just handing them off to the native 32 bit implementations, with a bit of grunging around for bug-for-bug compatibility. Its a bit like how Win9x turns all 32 bit graphics commands into 16 bit commands by stripping off the high word and handing it off to underperforming display drivers in the win16 subsystem. A native Merced implementation of NT could execute these API calls at full speed. -Steve