Runtime library

Runtime library

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, memory management or mathematical functions.

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 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.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Runtime Library — Runtime Library,   Laufzeitbibliothek …   Universal-Lexikon

  • Runtime library — …   Википедия

  • Runtime — В информатике, «runtime» или «run time» описывает срок исполнения компьютерной программы, от её начала до завершения (сравните время компиляции). Термин «Runtime» иногда используется для обозначения Runtime library  библиотеки базового кода …   Википедия

  • Library (disambiguation) — Library may refer to: * Library, a collection of books or an institution lending books and providing information * Library (computing), a collection of subprograms used to develop software ** Runtime library * Library (electronics), a collection… …   Wikipedia

  • Runtime — In computer science, runtime or run time describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). The term runtime can also refer to a virtual machine to manage a program… …   Wikipedia

  • Library (computing) — This article is about the programming concept. For Windows 7 Libraries, see Features new to Windows 7#Libraries. Illustration of an application which uses libvorbisfile to play an Ogg Vorbis file In computer science, a library is a collection of… …   Wikipedia

  • Runtime — Moteur d exécution Un moteur d exécution, bibliothèque d exécution ou runtime (abréviation de runtime system ou runtime library, runtime signifiant, en anglais, « au moment de l exécution ») est un programme ou une bibliothèque qui… …   Wikipédia en Français

  • Runtime Callable Wrapper — A Runtime Callable Wrapper (RCW) is a proxy object generated by the .NET Common Language Runtime (CLR) in order to allow a Component Object Model (COM) object to be accessed from managed code. Although the RCW appears to be an ordinary object to …   Wikipedia

  • C standard library — The C Standard Library consists of a set of sections of the ANSI C standard in the programming language C. They describe a collection of headers and library routines used to implement common operations such as input/output[1] and string handling …   Wikipedia

  • GNU C Library — Infobox Software name = GNU C Library caption = developer = GNU Project latest release version = 2.8 latest release date = release date|2008|04|11 [cite mailing list |url=http://sources.redhat.com/ml/libc alpha/2008 04/msg00050.html |title=glibc… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”