Difference between revisions of "$A"

From Free Pascal wiki
Jump to navigationJump to search
m (Trev moved page sA to $A without leaving a redirect: Dollar signs in page titles are ok)
m (Cosmetic fix)
 
Line 5: Line 5:
  
  
The local compiler directives {$ALIGN 1} or {$A1}, {$ALIGN 2} or {$A2}, {$ALIGN 4} or {$A4}, {$ALIGN 8} or {$A8},{$ALIGN 16} or {$A16} and {$ALIGN 32} or {$A32}  determine the alignment of records. The number signifies the alignment boundary in bytes.  
+
The local compiler directives {$ALIGN 1} or {$A1}, {$ALIGN 2} or {$A2}, {$ALIGN 4} or {$A4}, {$ALIGN 8} or {$A8}, {$ALIGN 16} or {$A16} and {$ALIGN 32} or {$A32}  determine the alignment of records. The number signifies the alignment boundary in bytes.  
  
 
Packing records reduces the amount of memory required at the expense of slowing down processing speed.
 
Packing records reduces the amount of memory required at the expense of slowing down processing speed.

Latest revision as of 12:21, 26 February 2020

Deutsch (de) English (en)


Back to local compiler directives.


The local compiler directives {$ALIGN 1} or {$A1}, {$ALIGN 2} or {$A2}, {$ALIGN 4} or {$A4}, {$ALIGN 8} or {$A8}, {$ALIGN 16} or {$A16} and {$ALIGN 32} or {$A32} determine the alignment of records. The number signifies the alignment boundary in bytes.

Packing records reduces the amount of memory required at the expense of slowing down processing speed.

These directives are related to the directive $PACKRECORDS.

Example:

  {$A8}      // the result is the same as {$PACKRECORDS 8}

  {$ALIGN 8} // the result is the same as {$PACKRECORDS 8}