Author Topic: C to Z80 Assembly Compiler  (Read 5365 times)

0 Members and 1 Guest are viewing this topic.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
C to Z80 Assembly Compiler
« on: July 15, 2006, 02:56:00 pm »
Ok this is basically a project that I want to be like TIGCC but for the 83 series family. I know C code but I need another person that knows C and someone that knows TI 83+ Assembly because I need to know the Assembly commands that the C commands will compile too. If you are willing to help please respond.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Zeromus

  • Guest
C to Z80 Assembly Compiler
« Reply #1 on: July 15, 2006, 04:31:00 pm »
YOu can do C for the 83+ mate, But this is a grand Idea! I would suggest checking over at Maxcoders or asking Imbian when he is on IRC

crzyrbl

  • Guest
C to Z80 Assembly Compiler
« Reply #2 on: July 15, 2006, 06:16:00 pm »
I thought you couldnt do C for 83+ since it was too slow

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
C to Z80 Assembly Compiler
« Reply #3 on: July 15, 2006, 06:34:00 pm »
No that's the thing since C is like an OOP(Object Oriented Programming) Language it is easier to program than Z80 Assembly. So basically what would you rather learn Assembly or C. THis program will compile your C code into hex opcodes then an 8xp file that will be compatible with TI-Connect. So you write the C then the compiler takes care of the rest. I was also thinking of an IDE but I cant program that.
There are 10 types of people in this world-- those that can read binary, and those that can't.

threefingeredguy

  • Guest
C to Z80 Assembly Compiler
« Reply #4 on: July 15, 2006, 06:43:00 pm »
C isn't an OOP language. The only existing C->z80 compilers run as slow as BASIC programs. You could ask mbruno on irc. He is found in #tcpa on the efnet server. He has been working on a C->z80 compiler.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
C to Z80 Assembly Compiler
« Reply #5 on: July 15, 2006, 06:48:00 pm »
Yea i know it isnt OOP thats why I said like and it wont be an on-calc compiler this will be a compiler written in C for the computer.
There are 10 types of people in this world-- those that can read binary, and those that can't.

threefingeredguy

  • Guest
C to Z80 Assembly Compiler
« Reply #6 on: July 15, 2006, 08:33:00 pm »
I mean the ones on PC produce code that runs as slowly as BASIC.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
C to Z80 Assembly Compiler
« Reply #7 on: July 16, 2006, 01:36:00 am »
and bigger even than basic. It would be cool to see a C compiler that produce more optimised code come out tho :)smile.gif

Liazon

  • Guest
C to Z80 Assembly Compiler
« Reply #8 on: July 16, 2006, 03:12:00 am »
Well, perhaps people are looking at the problem wrong?  Maybe these z80 ASM experts working on the C->ASM compilers should try a totally radical technique in writing compilers.  Considering z80 is 8-bit/psuedo 16-bit, it's probably difficult to include all the features of (32-bit) C.  After working with TIGCC for awhile and comparing it to the little z80 knowledge I have, I've noticed that 32-bit programming seems considerably different from 8-bit/16-bit.

My suggestion is perhaps to write a C->ASM compiler, but also create an ASM optimizing program (kind of like source coder? am I right?).  I don't know if it's possible though.  Actually, ASM optimizing is somthing that could be very helpful for the community because it takes a lot of experience before one can write efficient and optimized ASM code that could power the engine of say, an FPS.