Libiberty
This article needs more citations. (October 2016) |
| Libiberty | |
|---|---|
| Written in | C |
| Type | Library |
| License | LGPL-2.1-only |
| Repository | gcc |
GNU libiberty is a software library with a collection of subroutines used by various GNU programs.[1] The library is now a decommissioned GNU package.[2]
It was originally intended to be a sort of standard cross-platform library, thus enabling it to be linked (using the usual Unix library form) by just passing "-liberty" to the compiler. The contents consisted of a variety of useful functions. However, the development of standards for C and POSIX took away some of the impetus for this, and libiberty came to be used primarily as a support library for the GNU toolchain. It still contains a minimal set of functions that are either GNU extensions or occasionally unimplemented parts of the standard.[3]
Copies of libiberty are distributed with gcc, gdb, and the binutils. libiberty is not otherwise versioned or released separately.
One important piece of libiberty functionality is a demangler for C++ and D, included so that it is available to both binutils and GDB.
The name is a pun or word play on the word "liberty". On Unix-like operating systems, library files are always named "lib" + the name of the library. But when they are linked to with a C compiler command (cc, gcc, etc.), the command line flag specifying the library is -l followed by the part of the library name after "lib". In libiberty's case it therefore becomes -liberty.
See also
- Gnulib - the current GNU portability library
References
- ^ "Using (GNU libiberty)". gcc.gnu.org. GNU. Retrieved September 3, 2022.
- ^ "Decommissioned GNU packages". gcc.gnu.org. GNU. Retrieved September 3, 2022.
- ^ "GNU libiberty: Functions". gcc.gnu.org. GNU. Retrieved September 3, 2022.
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.