Difference between revisions of "Small C"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
m
m
Line 1: Line 1:
= General =
+
= In general =
  
 
''"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.''
 
''"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.''
Line 9: Line 9:
 
''As of 2007<sup style="display: none" class="plainlinks noprint asof-tag update">[http://en.wikipedia.org/w/index.php?title=Small-C&action=edit <font size="2">[update</font>]]</sup>, 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."''
 
''As of 2007<sup style="display: none" class="plainlinks noprint asof-tag update">[http://en.wikipedia.org/w/index.php?title=Small-C&action=edit <font size="2">[update</font>]]</sup>, 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."''
  
''(From Wikipedia, the free encyclopedia)<!-- /tagline --><!-- subtitle -->''
+
(From Wikipedia, the free encyclopedia / Link: <u><font color="#810081">[http://en.wikipedia.org/wiki/Small-C http://en.wikipedia.org/wiki/Small-C]</font></u>)<!-- /tagline --><!-- subtitle -->
  
= CPC specific =
+
= Specific =
  
&nbsp;
+
Compiler&nbsp;versions or interpreter&nbsp;for 8080/Z80 in general (look at):
 +
 
 +
<u><font color="#810081">[http://www.cpm.z80.de/small_c.html http://www.cpm.z80.de/small_c.html]</font></u>
 +
 
 +
<u><font color="#810081">&lt;u&gt;<font color="#810081">[http://www.z80.eu/c-compiler.html http://www.z80.eu/c-compiler.html]</font>&lt;/u&gt;</font></u>
  
 
= Cross-Compiler =
 
= Cross-Compiler =
Line 20: Line 24:
  
 
[http://www.cpcwiki.eu/index.php/SDCC SDCC]
 
[http://www.cpcwiki.eu/index.php/SDCC SDCC]
 
&nbsp;
 
 
= Links =
 
 
[http://www.cpm.z80.de/small_c.html http://www.cpm.z80.de/small_c.html]
 

Revision as of 09:18, 20 December 2011

In general

"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."

(From Wikipedia, the free encyclopedia / Link: http://en.wikipedia.org/wiki/Small-C)

Specific

Compiler versions or interpreter for 8080/Z80 in general (look at):

http://www.cpm.z80.de/small_c.html

<u>http://www.z80.eu/c-compiler.html</u>

Cross-Compiler

Z88DK

SDCC