From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81b62fa6e95ab58b X-Google-Attributes: gid103376,public From: kenner@lab.ultra.nyu.edu (Richard Kenner) Subject: Re: aliased & packed? Date: 1997/05/14 Message-ID: <5lc6cm$jh4$1@news.nyu.edu>#1/1 X-Deja-AN: 241480267 References: <1997May13.065907.1@eisner> Organization: New York University Ultracomputer Research Lab Newsgroups: comp.lang.ada Date: 1997-05-14T00:00:00+00:00 List-Id: In article 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.