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]

Re: "Endian and objdump"


On Friday 15 June 2001 03:30, you scribbled:
>    I have a question about the endianess.
>
>    If an assembler is configured as the little endian mode
> for both the host (Linux) and the target, and the binary
> code expected should looks like
>
> 	0x01020304

IMO, this looks like a number (not a memory dump), and should appear the same 
regardless of endianness, ie. MSB is at the left.

But a memory dump would look like
	0:	0102 0304
	4:

In this case, the "first" octet would be the first listed. i.e. address 0 
would contain byte 01. (again regardless of endianness)


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