Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: gorton@spf64.amt.tay1.dec.com (Richard Gorton)
Subject: Performance of binary translated code (was: NT binary translator?)
Date: 1995/08/28	[thread overview]
Message-ID: <41sk6g$jci@sousa.tay1.dec.com> (raw)
In-Reply-To: DDw6yB.1oE@world.std.com


In article <DDw6yB.1oE@world.std.com>, 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.



  reply	other threads:[~1995-08-28  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-24  4:00 NT binary translator? aaron
1995-08-25  4:00 ` Jerry Leslie
1995-08-26  4:00   ` Terry C Shannon
1995-08-28  4:00     ` Richard Gorton [this message]
1995-08-30  4:00     ` Carl J. Appellof
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox