This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: 16bit adressing architecture
- From: Nick Clifton <nickc at redhat dot com>
- To: Jan Zizka <ziza at klubicko dot net>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 17 Jul 2003 16:39:42 +0100
- Subject: Re: 16bit adressing architecture
- References: <20030716223133.GA7949@velky.homelinux.net>
Hi Jan,
> I'm working on binutils port for Motorola's DSP56800 family, its
> getting pretty mature, but during implementation of a testsuit I
> have found that some general testcases are failing. Simple
> reason is that DSP56800 byte is 16bit wide and I've build evething
> around that assumption. So the object file is correct etc. But
> for example align and struct test fail:
> Now the question is: should I change my port so that gas would think
> it's 8bit byte addressable, or should the tests be made somewhat more
> general to cover correctly architectures with different byte sizes?
I think that you should fix the tests. Your gas port is behaving
correctly, it is the tests which are incorrect in their assumption of
the size of a byte. I would try, if possible, to add alternative
versions of the expected output scripts that match 16bit bytes, and
then have the test driver scripts (*.exp) select the correct expected
output based on the architecture's byte size.
Cheers
Nick