Author Topic: Small C Compiler for TI-83+  (Read 16445 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Small C Compiler for TI-83+
« Reply #30 on: December 13, 2005, 02:43:00 pm »
QuoteBegin-xlibman+13 December 2005, 16:27-->
QUOTE (xlibman @ 13 December 2005, 16:27)
maybe there is doc about this compiler somewhere  

 http://sdcc.sourceforge.net/

This compiler for Z80 calcs should do all of the necessary things to make an executable for the calc.

It appears that it does not provide full support of the Standard C library. So, some things most C programmers take for granted will not be available. However, you can easily make your own substitute function.
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

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
Small C Compiler for TI-83+
« Reply #31 on: January 14, 2006, 09:47:00 am »
moved

Liazon

  • Guest
Small C Compiler for TI-83+
« Reply #32 on: January 14, 2006, 04:48:00 pm »
If I knew how to make a C compiler, I'd try to improve upon it.  But seeing as I can't master C or z80 ASM, and I possibly never will (see post in Ultima Thread as to why) I don't think I'd ever be able to do that.

What do you mean by standard C functions?  Computer C and high level equivalents?

dragon__lance

  • Guest
Small C Compiler for TI-83+
« Reply #33 on: January 14, 2006, 04:52:00 pm »
but don't give up trying, you'll get there someday... ;)wink.gif

edit: i just browsed through the documentation of SDCC, and it barely even mentions z80. still have no idea of calculater specific stuff.  :dang:banghead.gif
@ranman:when u have some freetime away from Ultima, do u think that u can try to explain to us noobs how SDCC works and the specifics of the z80 processor, (it did mention registers, but that's about all), like buffers,etc...thanks a bunch if you could  >Dgni.gif

Liazon

  • Guest
Small C Compiler for TI-83+
« Reply #34 on: January 14, 2006, 05:09:00 pm »
QuoteBegin-dragon__lance+14 January 2006, 22:52-->
QUOTE (dragon__lance @ 14 January 2006, 22:52)
but don't give up trying, you'll get there someday... ;)wink.gif

edit: i just browsed through the documentation of SDCC, and it barely even mentions z80. still have no idea of calculater specific stuff.  :dang:banghead.gif
@ranman:when u have some freetime away from Ultima, do u think that u can try to explain to us noobs how SDCC works and the specifics of the z80 processor, (it did mention registers, but that's about all), like buffers,etc...thanks a bunch if you could  >Dgni.gif

 Umm... that's like a basic requirement if you want to make good ASM.

I lost my copy of the z80instructionset and specifications in my old computer.  I never got a chance to read it, but it's really not that bad.

I just wish there was more like port documentation

Does anybody know what happened to MC?  I can't find the site anymore.

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Small C Compiler for TI-83+
« Reply #35 on: January 14, 2006, 05:16:00 pm »
QuoteBegin-dragon__lance+14 January 2006, 22:52-->
QUOTE (dragon__lance @ 14 January 2006, 22:52)
@ranman:when u have some freetime away from Ultima, do u think that u can try to explain to us noobs how SDCC works and the specifics of the z80 processor, (it did mention registers, but that's about all), like buffers,etc...thanks a bunch if you could  >Dgni.gif

 I will sure give it a shot. I'll take a more in-depth look at SDCC and get back with you.

I actually have a Z80 instruction manual lying around here somewhere. Maybe it is time for me to take a look at that too.
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

dragon__lance

  • Guest
Small C Compiler for TI-83+
« Reply #36 on: January 14, 2006, 06:06:00 pm »
i think Maxcoders domain is renewing its domain, so can't acess it from there. just go to google and type "maxcoderz forums" and it should give you a direct link. and thanks a lot ranman, perhaps if u could get an 83+, you can also code C for z80 :Dbiggrin.gif

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
Small C Compiler for TI-83+
« Reply #37 on: January 15, 2006, 12:46:00 pm »

koolmansam375

  • Guest
Small C Compiler for TI-83+
« Reply #38 on: January 15, 2006, 03:20:00 pm »
This looks interesting. I think Ill give it a try (with my limited C/C++ knowledge).

Liazon

  • Guest
Small C Compiler for TI-83+
« Reply #39 on: January 16, 2006, 04:45:00 am »
How exactly do compilers work anyways?  I know they are converting to machine language, but how do you build the compiler if you couldn't compile it in the first place?

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
Small C Compiler for TI-83+
« Reply #40 on: January 16, 2006, 06:03:00 am »
hm... maybe build it directly in machine language? %)rolleyes2.gif

well, there has to be a way or we

dragon__lance

  • Guest
Small C Compiler for TI-83+
« Reply #41 on: January 17, 2006, 02:29:00 pm »
hey guys, has anyone tried out the other C compiler that compiles Z80 code, Z88DK ? I was just browsing wikipedia encyclopedia and i came across it.  

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
Small C Compiler for TI-83+
« Reply #42 on: January 17, 2006, 03:19:00 pm »
nope never tried it, im heard the code was crappy :(sad.gif

anyone tried API yet?  

Liazon

  • Guest
Small C Compiler for TI-83+
« Reply #43 on: January 18, 2006, 09:59:00 am »
API will bloat your code if you use everything.  Right now, I think I'll just be using API's sprite routines for DEM because it's much easier than trying to make my own that are really slow.

Overall, API is really helpful because it's like additional r0m calls, or xlib functions.

I still haven't really tried it though.

dragon__lance

  • Guest
Small C Compiler for TI-83+
« Reply #44 on: January 19, 2006, 03:58:00 pm »
i tried API, it is AWESOME!!!! especially for noobie asm programmers like us xlibman ;)wink.gif . the big plus i see for it is there is a var.read(x) function and a var.write(x) function. with the use of xlib BASIC programs, u can create an ASM program using API as a helper program, for like quick math and stuff. unfortunantly, experimenting with API, i haven't gotton the normal sprites to work yet :(sad.gif

@liazon: wat would u exactly mean by API bloats ur code. Doesn't API not include the routines u don't use, thus only including useful routines...