alignFile Link Option (OS/2, Windows)

Syntax: Default:
link(alignFile, number)
link(alignFile, numberK)
link(alignFile, 16)
link(alignFile, 512)

This option sets the file alignment for segments or sections.

On OS/2, the value of the number must be a power of 2 between 1 and 4K, inclusive. The linker uses this value to align all code and data pages relative to the beginning of the executable file. The value does not affect memory address alignment.

On Windows, the value of the number must be a power of 2 between 512 and 64K, inclusive.



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


Set Build Options
Build


Link Options