Link time

Source: Wikipedia, the free encyclopedia.

In

runtime (when a program is executed
).

It is common to speak of link time operations (the operations performed by a linker) or link time requirements (programming language requirements that must be met by compiled source code for it to be successfully linked).

Link time operations

The operations performed at link time usually include fixing up the addresses of externally referenced objects and functions, various kinds of cross module checks (e.g.

optimizing compilers
delay code generation until link time because it is here that information about a complete program is available to them. Resolving external variables in a program is also done at link time.

The

link-time optimization
(LTO), when enabled, occurs at link time.

Link time requirements

The definition of a programming language may specify link time requirements that source code must meet to be successfully compiled (e.g. the maximum number of characters in an externally visible identifier that must be considered significant).

Exceptions

In some

which?
] it may be necessary for some compilation and linking to occur at runtime.

See also

References