[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] sparc <--> x86 data exchange
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] sparc <--> x86 data exchange |
Date: |
Thu, 15 Dec 2005 18:23:08 -0800 |
User-agent: |
Mutt/1.5.6i |
On Thu, Dec 15, 2005 at 03:29:38PM -0500, cswiger wrote:
> Gang - any hints on what happens to float data when transfered
> from a sparc machine to an x86? I understand byte-swap but this
> looks like word-swap.
>
> A dial_tone_2_file.py script is run on a sparc
> machine creating dial_tone_out_sparc.
> The same script is run on an x86 creating dial_tone_out_x86.
The sparc is big-endian, the x86 is little-endian.
Use od -b (octal bytes) and everything will look as expected.
If you've got hexdump on the sparc, use the script and format file
attached. It will dump bytes in hex.
Dumping the 32-bit integer 0x76543210
x86: 0x10 0x32 0x54 0x76
sparc: 0x76 0x54 0x32 0x10
hexbytes
Description: Text document
hexbytes.fmt
Description: Text document
- Re: [Discuss-gnuradio] sparc <--> x86 data exchange, (continued)
- Re: [Discuss-gnuradio] sparc <--> x86 data exchange, Matt Ettus, 2005/12/20
- Re: [Discuss-gnuradio] sparc <--> x86 data exchange, Greg Troxel, 2005/12/21
- Message not available
- Re: [Discuss-gnuradio] LW/MW/SW TiVo, Chuck Swiger, 2005/12/19
- Re: [Discuss-gnuradio] LW/MW/SW TiVo, cswiger, 2005/12/19
- Re: [Discuss-gnuradio] LW/MW/SW TiVo, michael taylor, 2005/12/19
- Re: [Discuss-gnuradio] LW/MW/SW TiVo, Eric Blossom, 2005/12/19
- Message not available
- Re: [Discuss-gnuradio] LW/MW/SW TiVo, Chuck Swiger, 2005/12/20
- Re: [Discuss-gnuradio] LW/MW/SW TiVo, Eric Blossom, 2005/12/20
Re: [Discuss-gnuradio] sparc <--> x86 data exchange,
Eric Blossom <=
Message not available