What about this? Is this dead?

By PingPong

Prophet (3132)

PingPong's picture

10-06-2018, 17:39

By PingPong

Prophet (3132)

PingPong's picture

10-06-2018, 18:32

Sorry the stupid corrector changed what with ebay

By RetroTechie

Paragon (1460)

RetroTechie's picture

10-06-2018, 20:05

Was it ever alive? "This project has no files" Tongue

Not sure why you'd bother... GCC turns C (or C++, or Java, or ...) into assembler code. This is fed to a tool included in Binutils, known as "AS - the portable GNU assembler". Which -among many other architectures-, supports generating Z80 code (!). From that tools' man page:

Target Z80 options:
         [-z80] [-r800]
         [ -ignore-undocumented-instructions] [-Wnud]
         [ -ignore-unportable-instructions] [-Wnup]
         [ -warn-undocumented-instructions] [-Wud]
         [ -warn-unportable-instructions] [-Wup]
         [ -forbid-undocumented-instructions] [-Fud]
         [ -forbid-unportable-instructions] [-Fup]

So if you have a Linux or BSD based system, and installed packages include Binutils, good chance that does include a Z80 assembler. Cool

Not to mention there exist several other C compilers that can produce Z80 code. For example sdcc (Small Device C Compiler).

By PingPong

Prophet (3132)

PingPong's picture

10-06-2018, 23:58

RetroTechie wrote:

Was it ever alive? "This project has no files" Tongue

Not sure why you'd bother... GCC turns C (or C++, or Java, or ...) into assembler code. This is fed to a tool included in Binutils, known as "AS - the portable GNU assembler". Which -among many other architectures-, supports generating Z80 code (!). From that tools' man page:

Target Z80 options:
         [-z80] [-r800]
         [ -ignore-undocumented-instructions] [-Wnud]
         [ -ignore-unportable-instructions] [-Wnup]
         [ -warn-undocumented-instructions] [-Wud]
         [ -warn-unportable-instructions] [-Wup]
         [ -forbid-undocumented-instructions] [-Fud]
         [ -forbid-unportable-instructions] [-Fup]

So if you have a Linux or BSD based system, and installed packages include Binutils, good chance that does include a Z80 assembler. Cool

Not to mention there exist several other C compilers that can produce Z80 code. For example sdcc (Small Device C Compiler).

OK, Maybe the AS can assemble z80 source code . But of course gcc cannot translate C code into z80 asm....
Plus generating z80 asm code from C is not so simple due to the z80 accumulator centric architecture.
Creating a register allocator for z80 it is not trivial because of the accumulator centric and the not orthogonal instruction set...

By geijoenr

Expert (91)

geijoenr's picture

11-06-2018, 07:24

SDCC is good enough.

I use it with Fuzix, and rlengine to make ROMS, and other people (like Konamiman) uses it to create MSXDOS software.

I recommend it. Have tried other options and I think is the best C cross-compiler that can be used with MSX at the moment.

My MSX profile