Author Topic: high level language compilers for the z80  (Read 3221 times)

0 Members and 1 Guest are viewing this topic.

Offline quasi_Phthalo

  • LV3 Member (Next: 100)
  • ***
  • Posts: 90
  • Rating: +1/-1
    • View Profile
high level language compilers for the z80
« 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?

_player1537

  • Guest
Re: high level language compilers for the z80
« Reply #1 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

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: high level language compilers for the z80
« Reply #2 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.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: high level language compilers for the z80
« Reply #3 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?
« Last Edit: June 20, 2010, 11:46:58 pm by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: high level language compilers for the z80
« Reply #4 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 :)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: high level language compilers for the z80
« Reply #5 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline quasi_Phthalo

  • LV3 Member (Next: 100)
  • ***
  • Posts: 90
  • Rating: +1/-1
    • View Profile
Re: high level language compilers for the z80
« Reply #6 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: high level language compilers for the z80
« Reply #7 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)