optFunc Link Option (OS/2, Windows)

Syntax: Default:
link(optFunc[, yes])
link(optFunc, no)
link(optFunc, yes)

This option determines whether unreachable functions are eliminated from external objects in the module being built. By default optFunc is set to yes.

This option is meaningful when linking to objects compiled from C source files or with other compilers than the C++ compiler supplied with VisualAge C++. When optFunc is set to yes, the linker removes functions that satisfy the following criteria:

This optimized linking can reduce the size of your executable or DLL target file. It may take longer than regular linking, because of the extra processing that the linker performs. However, it can sometimes speed up the linking process, because there is less information to write to file.

You may decide to set optFunc to no until your code is tested and stable.

Unreachable inline functions are always eliminated from C++ source compiled with the VisualAge C++ compiler for C++, regardless of the setting of optFunc.

On AIX, the linker always removes unreferenced symbols.



Incremental C++ Builds
C Compilation
Configuration Files


Set Build Options
Build


Link Options