This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 16bit adressing architecture


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
        


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]