- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
i am using Intel C Compiler for 32-bit applications, Version 9.0 for compiling c and c++ program ....
i am having binary file which is having big endian formatted data ......
how to convert this big endian to little endian format ?.....
Thanking you.
i am using Intel C Compiler for 32-bit applications, Version 9.0 for compiling c and c++ program ....
i am having binary file which is having big endian formatted data ......
how to convert this big endian to little endian format ?.....
Thanking you.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this by chance on a Mac?
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If this is for a Mac, you should be using the 9.1 compiler, and I would refer you to http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/
for more details on byte-swapping to account for endian-ness.
If not, perhaps you could provide a little more detail as to the problem you're trying to solve?
Thanks!
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By using bswap assembler instruction (i.e. bswap eax) or equivalent compiler intrinsic if available.
Note that there is no SIMD instruction for that purpose although it would be very usefull for sound card (wave) drivers.
Note that there is no SIMD instruction for that purpose although it would be very usefull for sound card (wave) drivers.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page