Hi all,

I also played around a little with the native-fdm and native-ctrls.
I made the following observations:

1. GNU C++ structure layout may _differ_ between different compiler
_minor_ versions.  E.g., one sizeof() was 504 bytes on Linux with g++
3.3.3 and 520 bytes on Cygwin with g++ 3.3.1.  Both on x86.

2. One can force the structs into same size by using the GNU-specific
attribute __attribute__ (( packed )).  

3. GNU compilers ignore #pragma pack etc.

4. There is an RFC 1014:  XDR (external data representation) which
basically defines big-endian integers and IEEE floating point values.

Wouldn't we want to base the interface upon XDR?

Gerhard Wesp             o o           Tel.: +41 (0) 43 5347636
Bachtobelstrasse 56       |       http://www.cosy.sbg.ac.at/~gwesp/
CH-8045 Zuerich          \_/       See homepage for email address!

Flightgear-devel mailing list

Reply via email to