<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>On 10 okt '12, Jonas Maebe wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><br />
<div>
<div>On 10 Oct 2012, at 12:02, <a href="mailto:dhkblaszyk@zeelandnet.nl">dhkblaszyk@zeelandnet.nl</a> wrote:</div>
<br class="Apple-interchange-newline" />
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: monospace;">Does FPC ensure the same memory alignment for records and objects<br />over different platforms?</span></span></blockquote>
<div>No, alignment is defined by the platform ABI.</div>
<br />
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: monospace;">If I want to be sure to have the same<br />alignment must I use packed (with possibly some aligning assigned)<br />records instead in combination with data types that are guaranteed to be<br />of the same size over the different platforms (eg byte, word, single) ?<br /></span></span></blockquote>
<div>Yes.</div>
<br />
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: monospace;">When<br />memory is alligned (either with {$PACKRECORDS N} or unpacked, are the<br />padding bytes quaranteed to be #0 or are they undefined?<span class="Apple-converted-space"> </span><br /></span></span></blockquote>
</div>
<br />
<div>They are undefined.</div>
<div>Jonas</div>
</blockquote>
<p> </p>
<p>One more question, when using packed records, is there anything to say about performance? Are there some tests anywhere that show how the performance is impacted?</p>
<p> </p>
<p>Darius</p>
<div> </div>
</body></html>