Omnimaga

Calculator Community => Other Calculators => Topic started by: quasi_Phthalo on June 20, 2010, 11:40:40 pm

Title: high level language compilers for the z80
Post by: quasi_Phthalo on June 20, 2010, 11:40:40 pm
I know i'd found a C compiler for the 83 once (might have been pretty basic), but are there any C++ compilers for the 83? you know, classes and all? or Java maybe?
Title: Re: high level language compilers for the z80
Post by: _player1537 on June 20, 2010, 11:43:21 pm
from what I've heard, a C/C++ compiler would defeat the purpose because it would be too large of programs and would max out the 8kb limit.  The C compiler I've seen is for z80 in general iirc
Title: Re: high level language compilers for the z80
Post by: calc84maniac on June 20, 2010, 11:45:29 pm
From what I've seen, C compilers don't produce very efficient code on z80. These languages are really designed for more complex, 32-bit (or more) processors, like x86, ARM, and 68k.
Title: Re: high level language compilers for the z80
Post by: DJ Omnimaga on June 20, 2010, 11:45:56 pm
If I remember, there was z88dk and sdcc that did C. I heard the first sucked, though. It produced extremly horrible, huge and slow code. I heard the later might be good, though, but I could be wrong. And yes, there's the 8 KB code limit, unless you manage to turn your work into APP. I haven't seen any C++ ones, though.

As for Java, there is Squirrelbox on Ticalc.org and Omnimaga archives, but it barely works, apparently and produce unworking code

My concern, though, is if C compilers can't produce good code on z80, then why Axe Parser can produce rather good stuff? Is it because Axe is more limited in what it can do?
Title: Re: high level language compilers for the z80
Post by: calc84maniac on June 20, 2010, 11:52:04 pm
If I remember, there was z88dk and sdcc that did C. I heard the first sucked, though. It produced extremly horrible, huge and slow code. I heard the later might be good, though, but I could be wrong. And yes, there's the 8 KB code limit, unless you manage to turn your work into APP. I haven't seen any C++ ones, though.

As for Java, there is Squirrelbox on Ticalc.org and Omnimaga archives, but it barely works, apparently and produce unworking code

My concern, though, is if C compilers can't produce good code on z80, then why Axe Parser can produce rather good stuff? Is it because Axe is more limited in what it can do?
I think it's because Axe was designed with the z80 processor in mind, and the general coding style is very similar to z80. Plus we have those optimized graphics routines built-in :)
Title: Re: high level language compilers for the z80
Post by: DJ Omnimaga on June 20, 2010, 11:56:45 pm
Aaah ok, might be why then. Also I guess it might help that Axe syntax is pretty similar to TI-BASIC. It will let you do a lot of TI-BASIC-like stuff, but faster
Title: Re: high level language compilers for the z80
Post by: quasi_Phthalo on June 20, 2010, 11:57:30 pm
ok.... i think i'll go with Axe then and give up on making my calc more impressive than my computer. oh wait, it already is! haha  ;D
Title: Re: high level language compilers for the z80
Post by: DJ Omnimaga on June 20, 2010, 11:59:58 pm
Lol XD

Altough we have to remember it's 6 MHz (or 15 depending of your model) ;D