Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > FreePascal's $P...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 720 of 792
Post > Topic >>

FreePascal's $PackRecords and alignment

by Stephen <stephen@[EMAIL PROTECTED] > Feb 21, 2007 at 12:14 AM

I don't quite understand the difference between FreePascal's 
$PackRecords directive values.

The documentation says the values can be 1, 2, 4, 16, and C. I 
understand the default is to align on 2 byte boundaries, and that 1 
is the same as a 'packed' record, but how do I know exactly when to 
choose 2, 4, 16, etc.? Are there performance gains if I use a higher 
alignment value? Is a value of 2 OK to use all the time, regardless 
of the size of the members of the record?




 5 Posts in Topic:
FreePascal's $PackRecords and alignment
Stephen <stephen@[EMAI  2007-02-21 00:14:14 
Re: FreePascal's $PackRecords and alignment
Marco van de Voort <ma  2007-02-21 12:03:52 
Re: FreePascal's $PackRecords and alignment
Jonas Maebe <Jonas.Mae  2007-02-21 13:36:40 
Re: FreePascal's $PackRecords and alignment
Marco van de Voort <ma  2007-02-21 14:34:29 
Re: FreePascal's $PackRecords and alignment
Jonas Maebe <Jonas.Mae  2007-02-21 13:33:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 1:23:19 CDT 2008.