Runtime library
A collection of executable software functions in the machine language of the target computer. A runtime library can be linked into an application at compile time with links already resolved from the programmer's code to the functions when the application is loaded. With this "static" linking, the runtime routines become part of the executable application.
Runtime routines can also reside in external files that are called for and dynamically linked to from the application at runtime. Dynamic link libraries (DLLs) are a common example. Development environments may provide both methods; for example, the C runtime (CRT) library, which provides the routines for standard C functions, provides both static and dynamic runtime capabilities. See DLL, runtime and runtime version.
Download Computer Desktop Encyclopedia to your PC, iPhone or Android.
In computer programming, a runtime library is a special program library used by a compiler, to implement functions built into a programming language, during the runtime (execution) of a computer program. This often includes functions for input and output, or for memory management.
When the source code of a computer program is translated into the respective target language by a compiler, it would cause an extreme enlargement of program code if each command in the program and every call to a built-in function would cause the in-place generation of the complete respective program code in the target language every time. Instead the compiler often uses compiler-specific auxiliary functions that are mostly not accessible to application programmers and which are implemented in the runtime library. Depending on the compiler manufacturer, the runtime library will sometimes also contain the standard library of the respective compiler or be contained in it.
Also some functions that can be performed only (or are more efficient or accurate) at runtime are implemented in the runtime library, e.g. some logic errors, array bounds checking, dynamic type checking, exception handling and possibly debugging functionality. For this reason, some programming bugs are not discovered until the program is tested in a "live" environment with real data, despite sophisticated compile-time checking and pre-release testing. In this case, the end user may encounter a runtime error message.
Usually the runtime library realizes many functions by accessing the operating system. Many programming languages have built-in functions that do not necessarily have to be realized in the compiler, but can be implemented in the runtime library. So the border between runtime library and standard library is up to the compiler manufacturer. Therefore a runtime library is always compiler-specific and platform-specific.
The concept of a runtime library should not be confused with an ordinary program library like that created by an application programmer or delivered by a third party or a dynamic library, meaning a program library linked at run time. For example, the programming language C requires only a very minimal runtime library, but defines a large standard library (called C standard library) that each implementation has to deliver.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
Related topics:
Related answers:
Help us answer these:
Post a question - any question - to the WikiAnswers community:
- Why was the nixon library called a library?
- Why are there libraries?
- What library is the best library in the world?
- What is a library?
» More
- What is a Microsoft c runtime library?
- Where do Iget runtime library?
- How do you clear runtime library errors?
» More
- runtime (technology)
- Pro*C (technology)
- runtime library (technology)
- elevator controller (computer jargon)
- static linking (technology)
- runtime version (technology)
- runtime engine (technology)
- CRT (technology)
- Core language
- Library (disambiguation)
- Run time
- Transactional memory
- Mod jk
- DynInst
» More» More