<div dir="ltr">Maybe.  Usually people who want this do something like:<div><br></div><div>Y = { c, d, e }</div><div>X = { a, b, Y }</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 19, 2013 at 12:04 PM, edA-qa mort-ora-y <span dir="ltr"><<a href="mailto:eda-qa@disemia.com" target="_blank">eda-qa@disemia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 19/11/13 08:03, Caldarale, Charles R wrote:<br>
>> X = { a, b, c, d, e }<br>
>> Y = { c, d, e }<br>
<br>
</div><div class="im">> In general, no.  If a, b, and c were char, and d was an int, using<br>
> typical C alignments, there would be one slack byte between c and d<br>
> in X, whereas there would be three in Y.  You could probably force<br>
> what you want with packed structures or by playing with the data<br>
> layout setting.<br>
<br>
</div>Yes, I forgot about the simple scenario. If I force the alignment on "c"<br>
should I be okay? That is, if I force it to the maximum alignment for<br>
the platform will { c, d, e } always have the same layout?<br>
<div class="im HOEnZb"><br>
<br>
<br>
--<br>
edA-qa mort-ora-y<br>
Leaf Creator<br>
<br>
Leaf - the language we always wanted<br>
<a href="http://leaflang.org/" target="_blank">http://leaflang.org/</a><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>