This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Is IEEE-695 is same for 64-bit machine
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "K. Ahmed Feroz" <feroz at acmet dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 17 Mar 2004 09:23:14 -0500
- Subject: Re: Is IEEE-695 is same for 64-bit machine
- References: <000801c40c1c$e0166c40$7200a8c0@FEROZ>
"K. Ahmed Feroz" <feroz@acmet.com> writes:
> I have doubt whether IEEE-695 format is same for 32-bit machine and
> 64-bit machine. Please confirm.
An IEEE-695 format object file will normally have an address
descriptor which contains the number of bits in an addressable unit
and the number of addressable units in an address. These values can
then be used whenever reading an address. Also, pretty much any time
the format contains a value, it starts with the length, and the format
supports lengths up to 8 bytes. So the format itself is the same for
a 32-bit or a 64-bit machine, although the actual values are
different.
That said, I don't think the BFD implementation works correctly for a
64-bit machine. Clearly at least ieee_write_int() and write_int()
need to be fixed. There are probably other places which need patching
as well.
Ian