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

0 Members and 2 Guests 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 #15 on: November 29, 2005, 03:32:00 pm »
ASM - in general, is the fastest and smallest code size.

C - in general, is the next best thing to ASM in terms of speed and size. Depending on how the C compiler is implemented, it can produce large bloated code, or decent code, or somewhere in between. Small C compilers are designed with hardware limited devices in mind, like our calcs. Small C compilers "should" be highly optimized for the platforms they are developed for.

So, I can't tell you how good or bad this new compiler is. You will have to weigh the benefits. C, in general, is easier and faster to code and easier to debug than ASM. But, it is almost guaranteed to be somewhat slower and larger than ASM.

You will have to ask yourself what you are willing to work with. The good thing about C, is that is still a very "used" language today.
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Small C Compiler for TI-83+
« Reply #16 on: November 29, 2005, 03:46:00 pm »
Sorry for the double post :?confused.gif

QuoteBegin-Ranman+29 November 2005, 21:05-->
QUOTE (Ranman @ 29 November 2005, 21:05)
QuoteBegin-dragon__lance+29 November 2005, 16:33-->
QUOTE (dragon__lance @ 29 November 2005, 16:33)
k, it saids that i need to:
- add C:\tisdcc to PATH
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 #17 on: November 30, 2005, 10:30:00 am »
thx ranman, i have the path set now, but when i run it, it still saids i need to set enviornmental variable for TISDCC dir

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Small C Compiler for TI-83+
« Reply #18 on: November 30, 2005, 04:36:00 pm »
QuoteBegin-dragon__lance+30 November 2005, 16:3-->
QUOTE (dragon__lance @ 30 November 2005, 16:30)
thx ranman, i have the path set now, but when i run it, it still saids i need to set enviornmental variable for TISDCC dir

Try this Dragon_Lance,

Start -> Control Panel -> System

- Click on the Advanced tab
- Click on Environment variables
- Click on New, the following window will come up
user posted image
- Type in the Variable Name - TISDCC_DIR
- Type in the Variable Value - c:\tisdcc
- Click Ok
- Click on New
- Type in the Variable Name - TISDCC_CC
- Type in the Variable Value - cl  (for Microsoft C Compiler)
- or Type in the Variable Value - gcc  (for GNU C Compiler)
- Click Ok, Ok, Ok


Note: the variable value is the path, this can be any directory where tisdcc is installed. This readme file is a little confusing.

Hope this helps! :)smile.gif
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 #19 on: December 01, 2005, 02:20:00 pm »
thx so much, now its working perfectly,yay :Dbiggrin.gif

MathStuf

  • Guest
Small C Compiler for TI-83+
« Reply #20 on: December 04, 2005, 03:29:00 am »
C runs just as fast as ASM until the ASM is super-optimized, in which case, the difference is minute. The people on MaxCoderz obviously have not programmed in it and compared it to an ASM program that does the same thing.

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 #21 on: December 04, 2005, 02:51:00 pm »
yeah, I assume they want to compare with a C fps, and a ASM fps game with grayscale polygon 3D graphics :S

+ZERO+

  • Guest
Small C Compiler for TI-83+
« Reply #22 on: December 12, 2005, 05:34:00 am »
@Dragon  Lance: I home you make some awesome games in C...  Maybe you could make like tutorial programs for n00bs, like with EZAsm. >Dgni.gif

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Small C Compiler for TI-83+
« Reply #23 on: December 12, 2005, 07:04:00 am »
So, DL...how hard is C to code, and what functions oes it support?
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

dragon__lance

  • Guest
Small C Compiler for TI-83+
« Reply #24 on: December 12, 2005, 10:21:00 am »
ummm, haven't really started yet, gonna start after zelda. I read some of the tutorial that Ranman recommended, i get C for the comp. But wat are the specifics once u translate to CAlc? btw, i looked at the test demo included with demo in C, it actually looks understandable %)rolleyes2.gif

+ZERO+

  • Guest
Small C Compiler for TI-83+
« Reply #25 on: December 13, 2005, 01:45:00 am »
I dont mean to be spammy  SPAM SPAM SPAM!!!
But I think another program is worth considering, EZAsm.  I have programmed a pong game in it, in which will be the basis of my next project

GO TI84Silver!!

SPAM!!

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Small C Compiler for TI-83+
« Reply #26 on: December 13, 2005, 02:50:00 am »
QuoteBegin-dragon__lance+12 December 2005, 16:21-->
QUOTE (dragon__lance @ 12 December 2005, 16:21)
ummm, haven't really started yet, gonna start after zelda. I read some of the tutorial that Ranman recommended, i get C for the comp. But wat are the specifics once u translate to CAlc? btw, i looked at the test demo included with demo in C, it actually looks understandable %)rolleyes2.gif

 I'm glad to see you are looking into this.
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

saubue

  • Guest
Small C Compiler for TI-83+
« Reply #27 on: December 13, 2005, 06:30:00 am »
If you can program C for a computer, it should be easy to do it for a calc (as long as the differences are explained in the documentation of the compiler, like in TIGCC).
Anyway, you will have to program more carfully. A computer won't claim about a lot of unused variables, arrays that are way bigger than they are needed... the calculator will because of its strongly limited RAM.

dragon__lance

  • Guest
Small C Compiler for TI-83+
« Reply #28 on: December 13, 2005, 10:25:00 am »
no expanation is given, all it saids is it uses SDCC's z80 compiler  :(sad.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 #29 on: December 13, 2005, 10:27:00 am »
maybe there is doc about this compiler somewhere