请输入您要查询的百科知识:

 

词条 Small-C
释义

  1. See also

     Small-C variants 

  2. References

  3. External links

{{Infobox software
| name = Small-C
| logo =
| developer = Ron Cain, James E. Hendrix
| released = {{Start date and age|1980}}
| latest release version =
| latest release date =
| operating system =
| genre = Compiler
| programming language = C programming language
| license = Copyrighted but sharable
| website =
}}

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 of Computer Calisthenics & Orthodontia. 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 be rewritten for the target processor.

See also

  • BDS C (1979) – C compiler for Z80 and 8080 systems
  • 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 based microcomputers
  • cc65 – Cross Small-C implementation for 6502 computers
  • Deep Blue C – Small-C for the Atari 8-bit family

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

  • Comments by Ron Cain on creation of Small-C
  • Several implementations of Small-C
  • NASM Project -fbin: Cain's Small-C Project
  • Native compiler for the BBC Computer

4 : C programming language family|C compilers|CP/M software|Public-domain software with source code

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 12:10:25