Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Halifax on July 15, 2006, 02:56:00 pm

Title: C to Z80 Assembly Compiler
Post by: Halifax 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.
Title: C to Z80 Assembly Compiler
Post by: Zeromus 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
Title: C to Z80 Assembly Compiler
Post by: crzyrbl on July 15, 2006, 06:16:00 pm
I thought you couldnt do C for 83+ since it was too slow
Title: C to Z80 Assembly Compiler
Post by: Halifax 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.
Title: C to Z80 Assembly Compiler
Post by: threefingeredguy 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.
Title: C to Z80 Assembly Compiler
Post by: Halifax 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.
Title: C to Z80 Assembly Compiler
Post by: threefingeredguy on July 15, 2006, 08:33:00 pm
I mean the ones on PC produce code that runs as slowly as BASIC.
Title: C to Z80 Assembly Compiler
Post by: DJ Omnimaga 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
Title: C to Z80 Assembly Compiler
Post by: Liazon 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.