Jonathan Polley wrote: > Now that 64-bit processors are becoming more available, does anyone know > of any problems that FlightGear may have running on a 64-bit processor > (Opteron or PowerPC 970)? I am assuming that those areas that would be > sensitive to data sizes (i.e., file formats) are safe?
>I've seen reports that 64-bit FlightGear was working without a problem. >But I hove no hands-on experience. The one problem I see is that, the sizeof() function is not going to give the same result in 32 bit and 64 bit mode due to difference in packing levels used for structures. To be specific, for the structures with odd number of words (1 word = 4 bytes), sizeof() will return the size with one extra word. Solution : Use pragma pack(n) Problems with above solution: When the packing level for structure is denser than the default packing level ( by using pragma pack )we need to use -misalign option in compile and link, and the -misalign function hampers the performance( frame rate) drastically. For further details, see man page for CC ( or any other compiler) Cheers!!! Gopal Mor __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
