From: supnik@human.enet.dec.com (Bob Supnik)
Subject: Re: Porting to Alpha VMS
Date: 22 Jun 92 00:33:19 GMT [thread overview]
Message-ID: <1203@sousa.ltn.dec.com> (raw)
In-Reply-To: 1992Jun20.154427.56695@cc.usu.edu
In article <1992Jun20.154427.56695@cc.usu.edu>, ivie@cc.usu.edu (CP/M lives!) writes...
> [text deleted]
>Yes, but it didn't have to perform the extra loads to get the instructions
>to tell it how to mask and shift.
> [text deleted]
The implementation (and therefore cost) of unaligned varied considerably
in the VAX line. In the 780 and 8800, to name two popular systems, unaligned
references triggered a microtrap (a hardware-vectored subroutine call) to
a microroutine that explicitly issued multiple loads, masked the data, and
shifted it to proper form. Although the fetch penalty for the extra code
was fixed (it came from ROM), there was a definite cost to draining the
micropipeline, executing the routine, and restarting.
In the VLSI VAX's and in the VAX 9000, in contrast, unaligned references
were handled by hardware sequencing which issued the second load and
merged and shifted the data.
For Alpha, the fetch penalty will vary depending on whether the unaligned
reference was detected at compile/translate time or dynamically at execution
time. In the former case, the load/shift/mask code will be inline, and
there is unlikely to be additional fetch penalty beyond the cost of the extra
instructions, because of the instruction cache, instruction prefetcher, and
similar mechanisms. In the latter case, the load/shift/mask code will be in
PAL (at least in a VMS environment), and the PAL routine may or may not be in
the instruction cache, depending on the frequency of unaligned access.
Thus, for the former case, the penalty for unaligned access is similar
to the VLSI VAX's and VAX 9000; for the latter case, the penalty can be
severe. Hence the recommendation to (a) avoid unaligned if possible and
(b) handle it if compile time if avoidance is not possible.
Note that for all VAX's, unaligned references across a page boundary invoked
a microtrap to check that both parts of the reference had sufficient
memory management privileges to complete. This is not necessary on Alpha,
except for translated VAX binary code, which must preserve the completion
semantics of the original VAX instructions.
Bob Supnik >Supnik@human.enet.dec.com
>All opinions expressed are those of a hardline microcoder
>and do not reflect those of Digital Equipment Corporation
next prev parent reply other threads:[~1992-06-22 0:33 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-05-23 3:04 DECs commitment to UNIX ? Mark Hittinger
1992-05-23 3:21 ` Marcus J. "will do TCP/IP for food" Ranum
1992-05-24 17:53 ` Reha Elci
1992-05-26 9:46 ` Michel Fingerhut
1992-05-28 7:53 ` Alex Martelli
1992-05-26 16:10 ` CP/M lives!
1992-05-26 18:22 ` Greg Vesper - RMS
1992-05-26 21:18 ` Tom B. O'Toole
1992-05-26 21:22 ` Steve Thompson
1992-05-27 22:04 ` William Pietri
1992-05-28 3:06 ` Jack Churchill
1992-05-28 17:07 ` Tom B. O'Toole
1992-05-29 13:50 ` Thaddeus P. Floryan
1992-05-28 6:45 ` Douglas Miller
1992-05-24 2:12 ` Bob Condon; x6303
1992-06-08 18:27 ` Mark Bartelt
1992-06-10 22:04 ` Hans Jespersen
1992-05-27 23:58 ` Harry Flowers
1992-05-28 3:20 ` VMS vs UNIX (was Re: DECs commitment to UNIX ?) Marcus J. "will do TCP/IP for food" Ranum
1992-06-02 3:06 ` Carl J. Appellof
1992-05-28 16:34 ` DECs commitment to UNIX ? CP/M lives!
1992-05-29 13:40 ` Thaddeus P. Floryan
[not found] ` <1992May27.220446.21908@terminator.c <6801@public.BTR.COM>
1992-05-31 16:14 ` Open VMS Douglas Miller
1992-06-02 14:02 ` Thaddeus P. Floryan
1992-06-02 21:43 ` Charles M Richmond
1992-06-03 10:54 ` Thaddeus P. Floryan
1992-06-03 20:51 ` <None> arthur
1992-06-04 15:05 ` <None> Jim Reiss
1992-06-11 8:40 ` Porting to Alpha VMS (was Re: <None>) Robin Fairbairns
1992-06-11 15:06 ` Porting to Alpha VMS Jim Reiss
1992-06-12 12:13 ` Dave Marra
1992-06-15 14:50 ` Jim Reiss
1992-06-15 17:17 ` hourahaner
1992-06-16 13:13 ` Dave Marra
1992-06-17 9:13 ` Robin Fairbairns
1992-06-17 10:37 ` Charles M Richmond
1992-06-18 9:23 ` Robin Fairbairns
1992-06-18 13:06 ` Steve McKinty - Sun ICNC
1992-06-18 20:23 ` Matthew B. Kirk
1992-06-19 2:27 ` Charles M Richmond
1992-06-17 15:25 ` system
1992-06-17 14:45 ` Jim Reiss
1992-06-17 18:44 ` Steve McKinty - Sun ICNC
1992-06-18 12:17 ` Greg Pavlov
1992-06-19 20:22 ` gezelter
1992-06-20 21:44 ` CP/M lives!
1992-06-22 0:33 ` Bob Supnik [this message]
1992-06-26 16:23 ` CP/M lives!
1992-06-26 17:33 ` Dileep Bhandarkar
1992-06-26 20:26 ` CP/M lives!
1992-06-11 17:43 ` Porting to Alpha VMS (was Re: <None>) Kurt Reisler
1992-06-12 10:49 ` pawlak
1992-06-11 10:26 ` <None> Burkhard Neidecker-Lutz
1992-06-05 17:10 ` Open VMS Stick in the mud....
1992-06-02 3:02 ` DECs commitment to UNIX ? Carl J. Appellof
[not found] ` <1992May27.220446.21908@terminator.c <6857@public.BTR.COM>
1992-06-07 18:52 ` Open VMS Douglas Miller
1992-05-27 12:58 ` DECs commitment to UNIX ? Michael Schuster 8726004 (Prak1 Gerhard)
1992-05-27 15:17 ` Greg Pavlov
1992-05-27 21:47 ` William Pietri
1992-05-28 3:44 ` Mark Hittinger
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