This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: cgen/gas: some support for funny-endian instruction sets
Hi -
On Mon, Jul 09, 2001 at 03:53:08PM -0700, Doug Evans wrote:
: [...] Then I don't have a problem with the patch _providing_
: word[-_]bitsize is renamed (say insn[-_]word[-_]bitsize).
Okay, I'll see if that's easy.
: > For example: word-bitsize=16, base-insn-size=32
: > insn-word=0x76543210 -EB=>0x76 0x54 0x32 0x10 -EL=>0x54 0x76 0x10 0x32
: > insn-word=0x3210 -EB=>0x32 0x10 -EL=>0x10 0x32
:
: Why isn't base-insn-size 16?
It's because the bytes past the initial two can contain
decodable, fixed bits which disambiguate among longer
instructions (not just operands). I've been making
changes to cgen & opcodes over the last few months to
support this case.
- FChE
PGP signature