Has anyone written a C++ compiler in Z80?

صفحة 3/3
1 | 2 |

بواسطة Manuel

Ascended (19466)

صورة Manuel

03-02-2023, 21:20

https://github.com/janwilmans/x86-to-z80 is what I found. But still x86... not what I remember.

بواسطة bore

Master (169)

صورة bore

04-02-2023, 01:04

Manuel wrote:

https://github.com/janwilmans/x86-to-z80 is what I found. But still x86... not what I remember.

Found that one too, but it doesn't seem like he changed much from the 6502 project except update the readme.

I think one would have to look at a modern compiler generates for a program that would be realistic for MSX to see if the conversion would be feasible.

I don't see why people are worried about segmentation since it was introduced to break the 64k barrier.
If that is a problem then your program doesn't fit in the Z80 memory space anyway.

I'm sure you can think if a billion theoretical cases where conversion is problematic but if the compiler doesn't generate it for you n'th 8-bit platformer then it doesn't really matter.

Also, if you think the problem is that C++ generates too much boilerplate code then it doesn't matter if you convert from x86 to z80 or go to z80 directly.
If it generates to much crud you'll have that problem either way.

صفحة 3/3
1 | 2 |