|
HistoricalContext
A historical summary of lightweight printfs for embedded systems
IntroductionThe format library is not the first (and likely not the last!) lightweight printf library for embedded systems. Here is a list of similar projects that I have found on the net that do something similar. Note that this is not meant to be the definitive collection, merely a list of some of what is out there. Interestingly I only found out about these projects after I had written the first version of format. In fact, the original version was written way back around 1998 when I was writing the standard C library for an 80186 compiler I was working on at the time, and took inspiration from Plauger's Standard C Library. Dave Hylands' StrPrintfhttp://www.davehylands.com/Robotics/MRM/Str/ Dates from 2003. Georges MeniesGeorges built a nice little printf replacement for embedded systems. It supports a limited subset of the ANSI printf specification, but usually enough for most typical purposes. http://www.menie.org/georges/embedded/#printf Floating point support has been added and maintained by Daniel D Miller (last updated August 2010). http://home.comcast.net/~derelict/snippets.html Philip J. Erdelskyhttp://www.efgh.com/software/gprintf.htm This library from 1996 is close in behaviour to format - it calls a consumer function to handle any output. Rud Merriam's rprintfThis version of printf was originally written for Embedded Systems Programming (1991). An original copy is in the Files section of the LPC2000 Yahoo group, or you can find it searching for the string "Public Domain version of printf" using your favourite search engine (Google shows 7 hits). This same source has been extended with the addition of basic floating point support: http://www.intellimetrix.us/downloads.htm - see rprintf.zip Really Old!!!Here is a really old version of printf that dates back to the 80s. http://opensource.apple.com/source/CPANInternal/CPANInternal-62/DBD-SQLite/printf.c?txt Some interesting observations:
|