[fpc-devel] FPC and Z80
pascaldragon at googlemail.com
Mon Apr 27 17:07:08 CEST 2020
Michael Van Canneyt <michael at freepascal.org> schrieb am Mo., 27. Apr. 2020,
> On Mon, 27 Apr 2020, nickysn--- via fpc-devel wrote:
> > Last night, I got the full system unit to compile, including console
> > output, so now you can use standard write/writeln. Unfortunately if you
> > include both read/readln and write/writeln in your program, the program
> > becomes too big to fit in the memory of the 48k ZX Spectrum, so there's
> > lots of optimizations left to do... :) However, the fact that the
> > system unit compiles fully, means that the code generator is starting
> > to become stable and, therefore, you should have little trouble porting
> > FPC to other Z80 platforms, such as the MSX - it's a matter of writing
> > the platform-specific RTL functions, and implementing the specific
> > things (linking and postprocessing the binary), required to produce a
> > program, in a format, suitable to run on the MSX.
> Well, I'm surprised and impressed you got it to work at all...
> Quite an achievement.
Considering that we already support AVR as well I was rather confident
here. :D Maybe in the future we can also add GameBoy support which uses
some Z80/8080 hybrid? ^^'
> I suppose FPC is now probably the compiler working for the biggest number
> CPUs/OSes - if it wasn't already. (C excepted, probably)
After GCC I'd assume that, too :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel