Link Options That Can Improve Performance

alignfile Link Option
Default is link(alignfile,512).
Default is link(alignfile,16).
Use this option to set the file alignment for sections in the output file. Setting alignfile to larger factors reduces the load time for the executable.
base Link Option
Default is link(base,65536), the required address for .EXE files.
Default is link(base,0x00400000).
This option can be used to position the DLLs you require at non-overlapping address ranges. This will normally speed up loading because it is less likely that a DLL will have to be relocated to some other address.
optfunc Link Option
Default is link(optfunc,no). Eliminates unreachable functions from external objects in the module being built.
exepack Link Option
Default is link(exepack,yes). Pack the executable or DLL file. The size of the module is reduced, reducing load time. Avoid using nopackdata.


Overview of Optimization


Optimize Your Application


Link Options