| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Big endian machines |
Re: Big endian machines
By: Bo Simonsen to All on Thu Jan 15 2004 02:06 am
> Could someone please give me a advice of what I should keep in mind,
> then I won't to write Endian-less software?
I would recommend storing integers on disk in ASCII rather than binary. A
32-bit integer stored as 8 hex characters will take up twice the storage space
as the binary equivalent, but it will have no endian issues.
If you are going to store integers on disk in binary (for storage or
performance reasons), then you will need to use intelligent macros to convert
to/from the native integer format for some platforms.
digital man
Snapple "Real Fact" #7:
A queen bee can lay 800-1500 eggs per day.
--- SBBSecho 2.00-Win32
* Origin: Vertrauen - vert.synchro.net (1:103/705)SEEN-BY: 633/267 270 @PATH: 103/705 218/903 10/3 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.