### /ALIGNADDR Linker Option

Syntax: | Default:
/ALIGNA[DDR]:factor | /ALIGNADDR:0x00010000

Use /ALIGNADDR to set the address alignment for segments.

The alignment factor determines the memory addresses for segments in the executable or dynamic link library file. Each segment is assigned to the next unused multiple (in bytes) of the alignment factor.

The alignment factor must be a power of 2, from 512 to 256M. The default factor is 64K.

Segments are divided into pages, which are also aligned by the alignment factor. The alignment factor must be a power of 2, from 4K to 64K. 64K is the default, and is the only useful value, unless you are building the operating system. The loader will not accept any other value.

Summary of Linker Options