Sujet : Re: Cost of handling misaligned access
De : m.delete (at) *nospam* this.bitsnbites.eu (Marcus)
Groupes : comp.archDate : 18. Feb 2025, 20:57:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vp2onf$1rfhu$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
Den 2025-02-18 kl. 20:25, skrev Brett:
BGB <cr88192@gmail.com> wrote:
[snip]
The smallest cores I had managed had used a simplified SH-based design:
Fixed-length 16 bit instructions, with 16 registers;
Only (Reg) and (Reg, R0) addressing;
Aligned only;
No shift or multiply;
You mean no variable shift, or no large shifts, you have to support divide
by 2, right?
Yes, LSL 1 can be implemented by ADD, but LSR/ASR 1 needs a dedicated
instruction, right?
IIRC the SuperH has some power-of-two shift instructions, e.g:
shlr Rn
shlr2 Rn
shlr4 Rn
shlr8 Rn
shlr16 Rn
It takes up some encoding space and costs extra cycles/instructions to
do a full shift (e.g. 7=4+2+1), but I guess you can make relatively
cheap shift hardware that way? Maybe you can get away with even fewer
instructions (e.g. only 1, 4, 16)?
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal