Archives of Genesis8 Amstrad Page




C Programming on and for Amstrad CPC (with SDCC, z88dk and ccz80)

-

To program in C on Amstrad CPC there are several compilers :

  • Small-C
  • Arnord-C
  • Hitech-C
  • Small-C
  • 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).

You can find tutors for using SDCC on NoRecess web site or on CPCWiki.

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 :

ESP Soft's blog (google translation herein english) has informations about using Z88dk (librairies like cpcrslib and cpcwyzlib) and ccz80 (earliest news).


For more news, Go to home page