PLATEFORM: AMSDOS, WIN32
PhrozenC is a C compiler based on original SmallC compiler. SmallC has been initially created in 1980 by Ron Cain, targetting CP/M machines at the time (which also includes the Amstrad CPC). In the beginning of the year 2010, I found out back the compiler's source-code on the net and tried to compile it for the PC platform. It worked pretty well, and I personally found its implementation relatively small in terms of memory footprint. ”For the fun” (like many projects started I guess :) I tried making a real Amstrad CPC port; at first, I was not able to get it working as expected but finally, after some tweaks and many headaches I succedeed in the task !
PhrozenC is available in several versions :
- Windows PC : the compiler is available as a stand-alone command-line application.
- Amstrad CPC 464/464+ : the compiler is available as a stand-alone application that use the whole memory of the machine. After execution, all memory has been plainly used (and destroyed previous content). This version is released for compatibility purposes and is definitively not the way to go!
- Amstrad CPC 6128/6128+ : the compiler is executed through RSX usage. It makes use of the full extra 64Kb memory (to keep the compiler in its compressed state, and also to preserve memory state in the first 64Kb memory area).
- Amstrad CPC 6128/6128+ (ROM version) : the compiler is available as a ROM application that can be executed through RSX usage. It makes use of the upper extra 48Kb memory (C5/C6/C7 banks) but let intact resident memory and bank &C4. It's recommended to use the ROM version of PhrozenC conjointly with the popular Arnor ROM-based development products : Protext , Maxam and Promerge.
PhrozenC's usage is really easy. Basically, it converts a C file (and its dependencies) directly to a single ASM source file, ready to be compiled with Arnor's Maxam or Richard Wilson's WinAPE.
PhrozenC is a single pass compiler, meaning that it does not have to keep the whole source-code to be compiled in memory. It directly outputs ASM opcodes of C code being read.
Due to internal usage of SmallC, PhrozenC is not an ANSI-C compiler, but use K&R style C instead. Differences between ANSI-C and K&R style C are relatively small, and explained in a later section. That said, K&R style C is standard, and all compilers on PC platforms are able to compile K&R style C code (GCC, VisualStudio,..).
Finally, PhrozenC does not introduce specific optimizations. Developer is able to directly em-beed inlined-ASM, meaning it's possible to include in the earth of a C source-code a pure bunch of ASM source-code.
- 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
- Initial release..
|★ AMSTRAD CPC ★ DOWNLOAD ★|
|★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...|
CPCrulez[Content Management System] v8.7-desktop/cache
Page créée en 063 millisecondes et consultée 2424 fois
L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.