Newlib
{{Short description|Implementation of the C standard library for embedded systems}}
{{Infobox software
| name = Newlib
| logo =
| author = Cygnus Support
| developer = Red Hat
| latest release version = 4.5.0
| latest release date = {{Start date and age|2024|12|31}}{{cite web |url=https://www.sourceware.org/ftp/newlib/index.html |title=Newlib releases}}
| operating system = Cross-platform{{cn|date=June 2015}}
| genre = Runtime library
| license = [https://www.sourceware.org/newlib/COPYING.NEWLIB Various MIT/BSD-like licenses]
| website = {{URL|http://www.sourceware.org/newlib/}}
}}
Newlib is a C standard library implementation intended for use on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products.
It was created by Cygnus Support as part of building the first GNU cross-development toolchains. It is now maintained by Red Hat developers Jeff Johnston and Corinna Vinschen, and is used in most commercial and non-commercial GCC ports for non-Linux embedded systems.
System Calls
The section System Calls[http://www.sourceware.org/newlib/libc.html#Syscalls System Calls], The Red Hat newlib C Library of the Newlib documentation describes how it can be used with many operating systems. Its primary use is on embedded systems that lack any kind of operating system; in that case it calls a board support package that can do things like write a byte of output on a serial port, or read a sector from a disk or other memory device.
Inclusion
Newlib is included in commercial GCC distributions by Atollic, CodeSourcery, Code Red, KPIT, Red Hat and others, and receives support from major embedded-processor architecture vendors such as ARM and Renesas. It is used as the standard C library in Cygwin, as well as being one standard C library among several for AmigaOS 4.
{{As of|2004}}, KallistiOS, an independent SDK targeting the Sega Dreamcast, has used Newlib as its standard C library, shipping it with many commercial titles on the platform.{{cite web|title=KallistiOS SourceForge Repository|url=https://sourceforge.net/p/cadcdev/kallistios/ci/master/tree/kernel/libc/newlib/|access-date=9 January 2024}}
{{As of|2007}}, devkitARM and devkitPPC, toolchains targeted at homebrew development for commercial game systems, include Newlib as their C library. The Open-R SDK for Sony AIBO is also based on Newlib on top of the non-Unix Aperios.
{{As of|2013}}, Google Native Client SDK (NaCl) includes Newlib as the default C library over glibc.{{cite web|title=Native Client: Getting Started Tutorial|url=https://developers.google.com/native-client/devguide/tutorial|access-date=16 February 2013}}
In 2019, Keith Packard released Picolibc,[https://keithp.com/picolibc/ Picolibc: C Libraries for Smaller Embedded Systems] a library offering standard C library APIs that targets small embedded systems with limited RAM, based on blending code from Newlib and [https://www.nongnu.org/avr-libc/ AVR Libc].
See also
{{Portal|Free and open-source software}}
;Other C standard libraries
{{Div col|colwidth=20em}}
{{div col end}}
References
{{Reflist}}
Further reading
- {{cite book |author=von Hagen, William L. |title=The Definitive Guide to GCC, Second Edition |publisher=Apress |location=Berkeley, CA |year=2006 |pages=289–290 |isbn=1-59059-585-8 |url=http://apress.com/book/view/1590591097 |access-date=2011-01-07 |archive-date=2010-12-05 |archive-url=https://web.archive.org/web/20101205225116/http://apress.com/book/view/1590591097 |url-status=dead }}
External links
- [https://sourceware.org/mailman/listinfo/newlib/ Newlib mailing list]
- {{webarchive |url=https://web.archive.org/web/20070929082837/http://www.embedded.com/story/OEG20011220S0058 |date=September 29, 2007 |title=Embedding with GNU: Newlib, By Bill Gatliff, 2001-12-28, Embedded.com }}
{{CProLang}}
Category:Free computer libraries
Category:Free software programmed in C