- Top Stats

Top Posters Top Topic Starters Top Topics
AMSDOS 1290
arnoldemu 1128
TFM 1124
ervin 746
ronaldo 406
AMSDOS 56
arnoldemu 51
ervin 42
EgoTrip 35
Arnaud 33
FutureOS corner - 71829 Views TFM/FS 07:12, 01 October 10
Example Z80 as... - 67200 Views arnoldemu 10:59, 04 April 10
#CPCtelera 1.4... - 33769 Views ronaldo 13:59, 11 May 15
BASIC programm... - 31801 Views arnoldemu 16:23, 22 May 09
CHAMP Assemble... - 25438 Views Bruce Abbo... 12:59, 16 January 14


Author Topic: Programming in C using only a real CPC : PhrozenC is out ! :)  (Read 5761 times)

0 Members and 1 Guest are viewing this topic.

norecess

  • Guest
Hi there !

It makes few weeks I have been working on a C compiler targeting Amstrad CPC platforms. Now that that version 1.0 is finished, I'm releasing it today!

The name of the compiler is PhrozenC, and is available under several versions :
- a PC version   (command-line)
... the best is coming :
- a CPC version (ROM format, use that version if you can!)
- a CPC version   (64Kb-compatible, stand-alone application which reset after execution)
-   a CPC version (128Kb, usable via RSX).

What is main fact to note?
On a PC, it compiles a .C file and it will generate a .ASM file ready to be compiled with WinAPE On a CPC, it compiles a .C file and it will generate a .ASM file ready to be compiled with... Maxam !
In both cases, the same exact .ASM file will be generated. As a consequence, everyone is free to choose to directly program in C on CPC, or enjoy the speed of a PC instead...

PhrozenC is released with a manual (PDF-format, 33 pages), covering all the things you have to know   about to start programming using PhrozenC. There is even a small tutorial about learning C for the newcomers.
Example sources are available, as also a small set of library files handling file management, graphics, memory management, string concatenation, etc..

This   is version 1.0 . I plan to get your feedbacks and provide better versions with time...

Please, before any technical questions   about PhrozenC, make sure you fully read the documentation.

Thanks to all the guys that helped me on this port, it was not that easy to get it working on a real CPC... :)

DOWNLOAD LINK : http://sourceforge.net/projects/phobia/files/PhrozenC-10.zip/download
« Last Edit: 13:39, 24 March 10 by norecess »

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 14.846
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2860
Ooh! Nice! Posted on the wiki's front page. Screenshots? :D


Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 2.833
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1043
Nice!!  :)

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 14.846
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2860
Well, what can I say, I'm an optical guy :)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.039
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1007
Well, what can I say, I'm an optical guy :)

We remember:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 14.846
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2860
Ah shurrup, you!

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.794
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3768
Amazing. Just downloaded it. I'll try out the ROM version tonight and return with some feedback....

Bryce.

norecess

  • Guest
Amazing. Just downloaded it. I'll try out the ROM version tonight and return with some feedback....

Bryce.

I need feedback! :)

Offline redbox

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.751
  • Country: gb
    • redbox
  • Liked: 326
Sounds great, especially as you can easily "see" the assembler it creates due to it outputting .asm files.
 
Can't wait to try it out...  :)

Offline nurgle

  • CPC6128
  • ****
  • Posts: 200
  • Country: de
    • index.php?action=treasury
  • Liked: 7
Cool!

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 2.833
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1043
All it needs now is a way to compile the ASM into binary on Linux.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.331
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2244
All it needs now is a way to compile the ASM into binary on Linux.
pasmo?
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 2.833
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1043
Oh, pasmo can compile the ASM generated by PhrozenC? Groovy then.  :)

norecess

  • Guest
Yes, it should compile OK with Pasmo. That said, I can only guarantee WinAPE and Maxam compatibility for now - I don't want to lose focus on what really matters by supporting multiple platforms/compilers/whatever.

norecess

  • Guest
I just released version 1.1 of PhrozenC, get it here : https://sourceforge.net/projects/phobia/

Changelog :

Version 1.1
- CC (Win32) Fixed crash when included file does not exist
- Fixed crash when calling CC with a C file entirely created on a CPC
- Fixed CS RSX-command usage. Now only ROM-based, but 100% safe.
- Updated documentation with compiler internal section

Version 1.0
- Initial release..


Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Hy,
Great project!!! Did somebody already try the FIOLIB with PhrozenC???
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

norecess

  • Guest
Hi TFM ..

You made me smile  ;D because of this :

http://cpcwiki.eu/forum/index.php?topic=443.0

No answer yet ? Try it yourself ! :)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Hi TFM ..

You made me smile  ;D because of this :

http://cpcwiki.eu/forum/index.php?topic=443.0

No answer yet ? Try it yourself ! :)

Oeahm, ok, after finishing the OP translation ;-) Seriously, I miss a lot of my CPC stuff here in USA. Will care about it ASAP. And sometimes a question is faster than DIY ;-)
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

norecess

  • Guest
Are you living in USA or just a trip ?

I'm living in Canada and I had to get a full working CPC there ! :)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Are you living in USA or just a trip ?

I'm living in Canada and I had to get a full working CPC there ! :)

Well, I'm in New Orleans since 18 months, 19 days and nearly 22 hours... to run a CPC with 110 Volt, 60 Hz is a problem for me...
 
Canada is a civilized country, metric system, educated people and maybe... 220 Volt???
 
However... in 3 weeks and 3 days I have two weeks holydays in Munich! All my CPCs are there ;-)
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

norecess

  • Guest
No, I had to buy a power-converter (110 to 220), and the monitor is a real Amstrad one.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
No, I had to buy a power-converter (110 to 220), and the monitor is a real Amstrad one.

Must have been a pain in the aXX to get that monitor there. I remember when Tolkin tried to get a monitor from France to Munich, the plain started 20 minutes to late ;-)
« Last Edit: 07:18, 30 July 10 by TFM/FS »
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.598
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 862
It's a pity I found C Language pretty hard going given I do Pascal alright (and managed a simple Bouncing Ball Demo in Small-C with a lot of ASM86), just wondered how PhrozenC goes when handling those Library files. Biggest setback in Turbo Pascal for instance is at Compilation Time when a 6 or 7k Library is jammed into the COM file, the whole thing isn't necessarily used which is most annoying! Unfortunately I've only have a readable source of the 16bit Version - maybe able to get clues from it using Standard code.
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1977
Hi, here my wired question again... anybody tried the FIOLIB with PhrozenC? I can't program C, only Z80, so I really don't know how to test it.
But hey, you will get any kind of LIB function you want, just tell me. And FIOLIB is already able to break the 64 KB barrier. So if somebody gives it a try, I would appreciate if you share your experience here.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus