(re-adding xen-devel)

>>> On 22.01.15 at 17:54, <tamas.leng...@zentific.com> wrote:
> On Thu, Jan 22, 2015 at 5:34 PM, Jan Beulich <jbeul...@suse.com> wrote:
>>>>> On 22.01.15 at 17:23, <tamas.leng...@zentific.com> wrote:
>>> Wouldn't making the
>>> struct packed just take care of it automatically?
>>
>> How would you envision to do that without using compiler
>> extensions?
> 
> My understanding of making the struct packed is that there is simply
> no alignment and padding. Thus, it would look the same on 32-bit and
> 64-bit as the size of each member is explicitly the same on each
> architecture. Am I missing something here?

But isn't that exactly what I suggested by adding explicit padding?
If not, please give an example.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to