From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2fe1824ff6e67b6e X-Google-Attributes: gid1164f8,public From: gorton@spf64.amt.tay1.dec.com (Richard Gorton) Subject: Performance of binary translated code (was: NT binary translator?) Date: 1995/08/28 Message-ID: <41sk6g$jci@sousa.tay1.dec.com>#1/1 X-Deja-AN: 109002707 distribution: world references: <41itb7$k0a@acara.snsnet.net> <41kpro$om6@tattoo.sccsi.com> organization: Digital Equipment Corporation reply-to: gorton@spf64.amt.tay1.dec.com (Richard Gorton) newsgroups: comp.sys.dec In article , shannon@world.std.com (Terry C Shannon) writes: >Given the performance hit you take when running translated code, >... >Note that the SPARC-to-Alpha (SunOs to Digital UNIX) code translator >(a.k.a. FreePort Express) is less constrained because of the >comparatively anemic performance of current SPARC implementations. Actually, with FreePort Express, we were MORE technically constrained than we were with 'mx', our prior Unix to Unix binary translator product. Our stated performance goal for FreePort Express is to make translated code perform at least at well as on Alpha as it did under SunOS, given comparably priced machines. The performance impact of binary translation is rather sensitive to a number of issues, some of which are: - Architectural differences between source and target machines (CISC --> RISC is messier than RISC --> RISC) - Endianness differences between source and target O/S. The reason our translated SPARC code doesn't perform on par with mx-ed code (which runs at 85%-90% of native Alpha performance for integer code) is primarily due to the endianness differences between SunOS and Digital UNIX. In order to get translated code to function, we have to leave the in-memory data in it's native form. That is, big-endian. In order to operate on that data under Digital UNIX, we have to perform byte-swaps on EVERY load and store in the user program. The fastest sequence we have been able to come up with to perform this swap (for a sign-extended 32-bit quantity) is 8 Alpha instructions. That being the case, the relatively low performance of current SPARC implementations is more than offset by the [rather large] performance penalty of executing 8 instructions for every 32-bit memory access in a translated program. At SunWorld, we demo-ed various translated programs on: SPARCstation 20/71 (75 Mhz superSPARC) AlphaStation 400 4/233 (233 Mhz 21064A) Same amount of memory, equivalent graphics/monitors, equivalent system prices. The translated code ran a bit faster on the Alpha system than the code did on the SUN boxes. -- Richard Gorton Project Leader: mx & FreePort Express Alpha Migration Tools Digital Equipment Corp. Reply-to: gorton@tallis.enet.dec.com All standard disclaimers apply.