Small-C

related topics
{math, number, function}
{system, computer, user}
{work, book, publish}
{line, north, south}

In computing, Small-C is both a subset of the C programming language, suitable for resource-limited microcomputers and embedded systems, and an implementation of that subset. Originally valuable as an early compiler for microcomputer systems available during the late 1970s and early 1980s, the implementation has also been useful as an example simple enough for teaching purposes.

The original compiler, written in Small-C for the Intel 8080 by Ron Cain, appeared in the May 1980 issue of Dr. Dobb's Journal. James E. Hendrix improved and extended the original compiler, and wrote The Small-C Handbook. Ron bootstrapped Small-C on the SRI International PDP 11/45 Unix system with an account provided by John Bass for Small C development (with management permission, provided the compiler sources were released as public domain). Small-C was important for tiny computers in a manner somewhat analogous to the importance of GCC for larger computers. Just like its Unix counterparts, the compiler generates assembler code, which then must be translated to machine code by an available assembler.

Small-C is a retargetable compiler. Porting Small-C requires only that the back-end code generator be rewritten for the target processor.

As of 2007, Small-C—now almost twenty-five years old—is still being used, ported, hacked and studied by people who want to learn how a compiler is written.

References

  • Ron Cain, "A Small C Compiler for the 8080's", Dr. Dobb's Journal, April-May 1980, pp. 5–19
  • James E. Hendrix, The Small-C Handbook, Reston 1984, ISBN 0-8359-7012-4
  • James E. Hendrix, A Small C Compiler: Language, Usage, Theory, and Design, M & T Books 1988, ISBN 0-934375-88-7
  • James E. Hendrix, Small C Compiler, M & T Books 1990, ISBN 1-55851-124-5

External links

Full article ▸

related documents
Yacc
Common Language Runtime
Typed link
A-law algorithm
Binary symmetric channel
Name server
Dia (software)
XBasic
Foobar
Input
Cfront
Common Intermediate Language
UnrealScript
BIND
Numbering plan
Filter (Unix)
ObjectPAL
Longitudinal redundancy check
ABC (programming language)
Abbreviated Test Language for All Systems
Java Development Kit
Spaced repetition
Andrew Tridgell
Grid network
Sequential access
XPointer
Shotgun debugging
Object-oriented programming language
Cypherpunk anonymous remailer
Unavailability