On 12/12/06, Martin Spott wrote:
I did most of my tests way before 0.9.8. Does this mean the current
NetFDM is safe for use with 64bit- as well as big-endian systems ?
I don't have the ability to personally test a lot of combinations, but yes,
this should all work well as of v0.9.10.
Endianess is definitely handled. And even for 32 vs. 64 bit systems, they
all still use a similar convention where integers and floats are 4 bytes and
doubles are 8 bytes. As long as we confine ourselves to ints, floats, and
doubles (and use an int for boolean values, etc.) then we should have an
extremely high probability of getting any two machines to talk to each other
successfully.
I do know of one exception ... the X-Scale architecture seems to swap the
first 4 and last 4 bytes of doubles, so they aren't using a standard big or
little endian representation for double floating point numbers. But if you
know that in advance it's pretty easy to work around (since you will be
running your own code on this processor, not flightgear.)
Regards,
Curt.
--
Curtis Olson - University of Minnesota - FlightGear Project
http://baron.flightgear.org/~curt/ http://www.humanfirst.umn.edu/
http://www.flightgear.org
Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel