|
From: | Alexandre Bustico |
Subject: | Re: [Paparazzi-devel] FlightGear not working |
Date: | Wed, 07 Dec 2011 11:37:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 |
Eduard I am surprised you find this does not work. The structure packing would naturally be pack(8) when built on linux with a 64 bit compiler. ie you dont need to tell it to do any special alignment because it will be aligned on 8 byte boundaries anyway otherwise integers (which take 8 bytes in 64bit) would not be aligned in memory. Eric
On many 64 bits platform, sizeof(int) is 4 bytes, long and pointers are 8 bytes wide, so packing is dependent of the behavior of the compiler when it analyses the content of the struct.
Alexandre
[Prev in Thread] | Current Thread | [Next in Thread] |