alignAddr Link Option (OS/2, Windows)

Syntax: Default:
link(alignAddr, number)
link(alignAddr, numberK)
link(alignAddr, numberM)
link(alignAddr, 0x10000)

This option sets the address alignment for all loadable segments so that the start of each segment is aligned at a multiple of the specified number of bytes. The default alignment is 64K bytes.

On OS/2, this option is useful only for building the operating system, and you should not use it in other contexts. The value of the number must be a power of 2, between 4 and 64K, inclusive.

On Windows, the value of the number must be a power of 2 between 512 and 256M, inclusive, and must be equal to or greater than the value set by link(alignFile,...).



Incremental C++ Builds
C Compilation
Configuration Files
Sections and Segments


Set Build Options
Build


Link Options