My personal conclusion thanks to my own experience with z88dk and SDCC was that SDCC produced much better code than z88dk. Today I got confirmation from one of the z88dk authors here : "sdcc currently generates code which in general is smaller and faster than the one generated by z88dk [...] it does support a more complete subset of standard C compared to z88dk. It is actively maintained (releases about once a year) and keeps improving.". Don't get me wrong : competition is good and actually benefits to both projects. Still - basically it's a fact that today SDCC is the best C compiler available for Z80 developments.
I updated the article with a new Tips & Tricks : How can I retrieve parameters in a C function from inlined assembly code ? Click here to read it.
I updated the article with a new Tips & Tricks : How to use multiple C source-files in a single project ? Click here to read it.
Once again - a new release. From here this release is a stable version and recommended for everyone.
Changelog : fixed other minor issues with IX/IY registers handling, added better support for #< and #> SDCC's operations, and finally, added only required C lib code at end of generated source file. Thanks a million to Optimus for providing such a great support ! :) You can download latest version here. I updated the article with a new Tips & Tricks : How to include binary files into the compiled file ? Click here to read it.
This version includes many important bug-fixes, thanks to your awesome feedback (hello Optimus ! :-). IX/IY registers should now be correctly handled, and utility functions such as _multiply or _abs are now automatically inserted at end of generated source. You can download latest version here.
Here we are. I finally made big pressure on me to finish writing the last tutorial about SDCC :) As usual, send me comments if you need more information, I will be glad to complete the corresponding articles.
This is a custom tool to be used to convert .asm files generated by SDCC C compiler to .asm files compatible with Pasmo. Pasmo is a Z80 assembler with Maxam-style syntax. Download SDCC2Pasmo here (also added in Productions section). This is version 1.0, so please be indulgent with potential issues you may encounter. I used it for 2 weeks now and fixed all the problems I was able to find on my side.
I made available as a download link the PhrozenC's manual I wrote. It's about 36 pages to explain how to use the compiler and its dedicated small library for the Amstrad CPC. As a reminder, PhrozenC is a K&R C compiler running on Amstrad CPC platforms (64Kb/128Kb/ROM). Phreaks demo has been created using it.
|
Categories
All
AuthorI (NoRecess) am an active programmer for the 1985's Amstrad CPC computer. Feel free to contact me via the Contact section. |