News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Phrozen C

Started by funkheld, 21:39, 19 November 19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld


hello, I have looked at this phrozentc.
makes a good impression. I like it.
can one of the source code from the program on the pc slices and then transferred to phrozentc on the Javacpc?


Thank you.
greeting

funkheld


Hi good afternoon.


I plugged in the PhrozenC.rom and started with | cc
then a program loaded.
shortly thereafter it crashes without compiling.


have you ever tried a rom?


Thank you.
greeting

funkheld


I have maxam in it too.
still crashes.
greeting

AMSDOS

Quote from: funkheld on 22:21, 19 November 19
Hi good afternoon.


I plugged in the PhrozenC.rom and started with | cc
then a program loaded.
shortly thereafter it crashes without compiling.


have you ever tried a rom?


Thank you.
greeting


I have been using the ROM version which has been working fine for me, though following the instructions from the Manual you can use |cc,"example1.c" to compile the code. If it doesn't work, then there maybe something wrong with the ROM.  :(
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

funkheld

#4

Hi good afternoon.
I have now renounced from Pascal.
I tested this:


https://ccz80pp.webcindario.com/ccz80pp-en.html


wonderfully simple, small ASM code and fast in execution.
For me as a 70 year old I like this language.
I like programming in cros.


greeting

norecess464

Please note that I don't provide any support on PhrozenC, it's a dead project with remaining bugs, I don't recommend using it anymore.
I highly recommend using a cross-compiler like SDCC on PC to use C programming language on the Amstrad.

Best regards
My personal website: https://norecess.cpcscene.net
My current project is Sonic GX, a remake of Sonic the Hedgehog for the awesome Amstrad GX-4000 game console!

GUNHED

Quote from: norecess on 15:26, 21 November 19
Please note that I don't provide any support on PhrozenC, it's a dead project with remaining bugs, I don't recommend using it anymore.
I highly recommend using a cross-compiler like SDCC on PC to use C programming language on the Amstrad.

Best regards


Well, all that PC stuff is nice for sure. However, as CPC users lots of us would love to have something up and running on the real machine. Maybe PhrozenC can be open source of something like this (or is it already?). If you don't suggest to use it, what could be used instead on a CPC?  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

norecess464

Feel free to fork PhrozenC, sources are available here: https://github.com/norecess464/PhrozenC

My personal website: https://norecess.cpcscene.net
My current project is Sonic GX, a remake of Sonic the Hedgehog for the awesome Amstrad GX-4000 game console!

AMSDOS

Quote from: norecess on 15:26, 21 November 19
Please note that I don't provide any support on PhrozenC, it's a dead project with remaining bugs, I don't recommend using it anymore.


You don't recall what remaining bugs there are?
I understand that being based on Small-C there will be limits from the other PC Cross-Compilers and it won't compile Commercial Quality software, at the moment though I only have some routines from Small-C which work on Phrozen C to produce random numbers and I've added some extra routines from the firmware for joystick control, redefining characters, basic scrolling, it's BASIC stuff, but at least it's more usable than some of the other Pascal Cross-Compilers I've seen.


Quote
I highly recommend using a cross-compiler like SDCC on PC to use C programming language on the Amstrad.

Best regards


I had a look at z88dk, which was updated recently, but the whole package seems to be missing a document titled "Lets get you up and running on Z88DK for your CPC".  ???  But, but, but I don't know how anyone can make sense of all that and I was still able to get Python up and running on my Mac!  :o
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

norecess464

QuoteYou don't recall what remaining bugs there are?
Not exactly "bugs", but there are remaining improvements to provide for sure.
The CPC version of PhrozenC that generates ASM files with static address for compilation. Address should be configurable, not fixed.Also, the compiler is not ANSI C but K&R one (the syntax is really challenging nowadays).Finally, note that the SmallC does absolutely no effort to optimize. Compiled code quickly takes a large amount of memory even for a small portion of C code.
My personal website: https://norecess.cpcscene.net
My current project is Sonic GX, a remake of Sonic the Hedgehog for the awesome Amstrad GX-4000 game console!

GUNHED

Quote from: norecess on 15:11, 22 November 19
note that the SmallC does absolutely no effort to optimize.
Well, I have a Small C for CP/M Plus which is executing an optimizing tool after compilation and before optimization. Seems to work quite well. Maybe this can help. The DSK was uploaded before.   :)


The Phrozen C is still a great thing and I totally understand that people like it.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

funkheld


Hi good afternoon.


with which compiler are the asm under windows10 compiled please?
phrozenc

Thank you.
greeting

norecess464

Quotewith which compiler are the asm under windows10 compiled please?
phrozenc
Sorry I'm not sure to understand, please can you reformulate ?
My personal website: https://norecess.cpcscene.net
My current project is Sonic GX, a remake of Sonic the Hedgehog for the awesome Amstrad GX-4000 game console!

funkheld

with which compiler for the asm can one please compile.


asm from Phrozen C programm.


greeting

AMSDOS

The RASM Z80 Assembler should work for you.


@GUNHED are you are referring to the Mike's Enhanced Small-C Compiler for CP/M made by @FloppySoftware ?


@norecess so the Assembly source code produced has to remain at &4000. I think CPC BASIC 3 is the same, though CPC BASIC 3 produces some very optimised code. It's one of the few Cross Compilers I can use, unfortunately it mimicks Locomotive BASIC a lot, while there are differences. A really good Manual documentating it's use (not a webpage just noting the differences with Locomotive BASIC) would be a great help and reference.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

GUNHED

Gosh, too long ago that I used it, need to browse my DSKs as soon as I have a bit time.
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

funkheld


Hi good afternoon.


how can you please compile an asm with maxam1.5 rom?
Thank you.
greeting

AMSDOS

Quote from: funkheld on 17:57, 24 November 19
Hi good afternoon.


how can you please compile an asm with maxam1.5 rom?
Thank you.
greeting


I maybe wrote, but I think it needs Protext with the Assembly File loaded in that, you can exit Protext and |ASM to assemble. I can't remember if it could compile from File.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

GUNHED

Quote from: AMSDOS on 10:09, 26 November 19

I maybe wrote, but I think it needs Protext with the Assembly File loaded in that, you can exit Protext and |ASM to assemble. I can't remember if it could compile from File.


READ to read source code
WRITE to write binary code
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

AMSDOS

Quote from: GUNHED on 21:59, 26 November 19

READ to read source code


Yeah, but I don't know if |ASM,"example1.asm" would read in that Assembly file and Compile to Memory, or if it only works when the Assembly file has been loaded in Protext, which was how I used to Compile when using Maxam 1.5.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

GUNHED

Quote from: AMSDOS on 09:46, 27 November 19

Yeah, but I don't know if |ASM,"example1.asm" would read in that Assembly file and Compile to Memory, or if it only works when the Assembly file has been loaded in Protext, which was how I used to Compile when using Maxam 1.5.


IMNO Protext should contain at lease one line:


READ"source


But you can just try it.   :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Powered by SMFPacks Menu Editor Mod