comp.lang.ada
 help / color / mirror / Atom feed
From: kenner@lab.ultra.nyu.edu (Richard Kenner)
Subject: Re: aliased & packed?
Date: 1997/05/14
Date: 1997-05-14T00:00:00+00:00	[thread overview]
Message-ID: <5lc6cm$jh4$1@news.nyu.edu> (raw)
In-Reply-To: EA4nII.803@world.std.com


In article <EA4nII.803@world.std.com> bobduff@world.std.com (Robert A Duff) writes:
>And it seems like more than a couple of instructions to shift and mask
>an 8-byte word (I mean, using 21064 instructions only), in the case
>where the byte you want is dynamic (i.e. you're indexing randomly into
>an array of bytes -- on the other hand, most array accesses are probably
>sequential).

The actual number of instructions depends on more than just if the byte
number (address mod 4) is known, but also on the form you have the address
in and on the value of the constant byte number, if known.

In most cases, byte loads are two instructions for both the static and
dynamic case.  For stores, it's between four and six instructions, with
the static case having four or five and the dynamic case six.




  parent reply	other threads:[~1997-05-14  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-11  0:00 aliased & packed? tmoran
1997-05-11  0:00 ` Robert Dewar
1997-05-11  0:00   ` Tom Moran
1997-05-12  0:00     ` Robert Dewar
1997-05-12  0:00       ` Robert A Duff
     [not found]         ` <1997May13.065907.1@eisner>
1997-05-13  0:00           ` Robert A Duff
1997-05-13  0:00             ` Larry Kilgallen
1997-05-14  0:00             ` Richard Kenner [this message]
1997-05-13  0:00           ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-05-09  0:00 Tom Moran
1997-05-09  0:00 ` Stephen Leake
1997-05-09  0:00   ` Tom Moran
1997-05-10  0:00 ` Robert Dewar
replies disabled

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