qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Align Data Directive
  Compiler Directives Contents Index                        Back
 
  {$A<+│->}
 
  Description
 
    Switches between two settings that control the alignment of data.
    The default is {$A+}.
 
    {$A+}  Aligns data on word boundaries. It pads with a byte
           if necessary, but does not pad or align record fields or
           array elements. This results in faster program speed and
           increased memory consumption by data structures. Where
           memory consumption is an issue, choose {$A-}.
 
    {$A-}  Aligns data on byte boundaries. This places data of any
           size at the next available address.
 
    For 80x86-based machines, data at even addresses is accessed
    faster than data at odd addresses. Alignment does not affect
    memory access on 8088-based machines.