Skip navigation.
 
mlRe: PPC to Intel endian converter?
FROM : Brian Bechtel
DATE : Fri Jul 28 17:30:14 2006

On 7/27/06, Roland Torres <<email_removed>> wrote:
> I have a bunch of big-endian (PPC) binary gigabyte data files that I
> need to read in and process on an Intel iMac. Is there some process
> or C routine that people are using to convert PPC data to Intel?  Or
> do I need to reinvent the wheel and write a routine to read the data
> byte by byte and reassemble the bytes into little endian longwords,
> then write them out again? Maybe there's some trick UNIX command line
> thingy to do this?


While Jonathan Grynspan has given you code, let me recommend that you
also read the Universal Binary Porting Guidelines from Apple,
specifically the section on byte swapping.
<http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/index.html>

Related mailsAuthorDate
mlPPC to Intel endian converter? Roland Torres Jul 28, 02:42
mlRe: PPC to Intel endian converter? Jonathan Grynspan Jul 28, 03:01
mlRe: PPC to Intel endian converter? Brian Bechtel Jul 28, 17:30