[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] FlightGear not working

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

Le 06/12/2011 22:10, address@hidden a écrit :

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.


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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]