To program in C on Amstrad CPC there are several compilers :
- PhrozenC (on AND for Amstrad CPC as it also exists for windows)
But you can also program in C for Amstrad CPC on another platform. First,the multi-platform C compiler SDCC v3.1.0 targetting Z80 is out.
To use this compiler you can use an IDE : either Code::Blocks with its SDCC template by Octoate, or Phactory v2.1 by NoRecess with the help of SDCC2Pasmo v1.5(wich comes with sources). SDCC2Pasmo takes an .ASM file created by SDCC and converts it to used with PASMO (a Z80 cross assembler) which is compatiblewith Maxam (Amstrad CPC Z80 compiler, WinApe too).
If you are interested in using SDCC, you should read this CPCWiki forum thread about SDCC possible problems and anotherabout sMIDP2lib : a SDCC framework library by Mr Lou (which has now its own page on CPCWiki.
SDCC isnt the only compiler you can use, there is also :
- Z88dk v1.9 with cpcrslib (Amstrad CPC library for Z88dk), check this CPCWiki forum thread about Z88dk. There is a modified cpcrslib and starkos library byKevin Thacker in his Blue Angel 69 game.By the way, the developers of Z88dk are currently in the progress to allow SDCC to be used as a backend for Z88dk.
- CCZ80 v3.1.2 by Emilio Guerrero. There are 2 Amstrad CPC librairies usable for CCZ80 : cpcrslib (adapted from cpcrslibfor Z88dk) and sprutilcpc (included with CCZ80)