The part of a computer program that links itself to application programs as they run. This code can be shared between different parts of the program rather than having to insert it in several different places.