Small-C
≈ 4 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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. The provided source code was released with management permission into the 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 and the library to operating system interface calls be rewritten for the target processor.
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. The provided source code was released with management permission into the 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 and the library to operating system interface calls be rewritten for the target processor.
See also
BDS C (1979) – C compiler for Z80 and 8080 systems MISOSYS C (1985) - C compiler for TRS-80 (Z80 CPU) Tiny C (2002) – C compiler for slow x86 and ARM computers having little disk space
Small-C variants
Z88DK – Cross Small-C implementation for Z80 / 8080 / 8085 computers cc65 – Cross Small-C implementation for 6502 / 65C02 computers Deep Blue C – Small-C for the Atari 8-bit computers Thunder C – Small-C for the UCSD p-System A.J.Travis – Native Small-C for the BBC Micro computer Clarkson College of Technology - For Z-DOS on Zenith Z-100
References
Notes
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, James E. Hendrix, A Small C Compiler: Language, Usage, Theory, and Design, M & T Books 1988, James E. Hendrix, Small C Compiler, M & T Books 1990,
External links
Comments by Ron Cain on creation of Small-C Several implementations of Small-C Native compiler for the BBC Computer Dr. Dobb's Small-C Resource CDROM iso-image download Original Dr. Dobb's Article by Ron Cairn Follow-up Dr. Dobb's Article by James E. Hendrix
Text derived from https://en.wikipedia.org/w/index.php?oldid=1357587645 under CC BY-SA 4.0; modifications have been made.