/ALIGNFILE Linker Option

Syntax: Default:
/A[LIGNFILE]:factor /ALIGNFILE:512
/ALIGNFILE:16

Use /ALIGNFILE to set the file alignment for segments.

The alignment factor determines where segments in the .exe or .dll file start. From the beginning of the file, the start of each segment is aligned at a multiple (in bytes) of the alignment factor.

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

The alignment factor must be a power of 2, from 1 to 4096. The default alignment is 16 bytes.



Summary of Linker Options