Author Topic: Small-C - confused  (Read 9543 times)

0 Members and 1 Guest are viewing this topic.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Small-C - confused
« Reply #15 on: November 19, 2011, 04:59:28 pm »
It looks to me that ti83p_asm.rel does not exist. I'm getting the exact same error on the included test program.

Edit: I emailed the author. I hope I get a reply :)
« Last Edit: November 19, 2011, 05:20:47 pm by HOMER-16 »

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline AHelper

  • LV3 Member (Next: 100)
  • ***
  • Posts: 99
  • Rating: +18/-0
    • View Profile
    • GlaßOS razzl
Re: Small-C - confused
« Reply #16 on: November 20, 2011, 02:36:40 am »
Just the throw this out there as I already use C  and know a lot about it....

There are a few C compilers to use.  You must likely have to make your own glue functions to interface with TIOS.  That means that you need to convert that compiler's register/stack usage into b_call's. 

z88dk already has functions ready to use, but is huge.  If you want to make super-tiny programs in C for the ti83p right away, shell or no shell, then z88dk is there.

small-c has many differences from normal C and some things may be done differently.  I didn't like the C style in it, so I have no experience.

SDCC is what I use for the optimizing abilities, ansi c89/c99 compliance, and its own libc.  You will need to make glue functions for this, too, but the output code size is smaller than z88dk and allows high-level printf with floats to low level hardware access. 

The output files for the compilers is usually similar.  .ihx/.bin is the binary output.  If you want to make programs with C in TIOS, then have fun depending on the compiler.

(Because I am magnatized to C on z80 threads, I simply will note)  GlaßOS is a nice example of SDCC being used to write a replacement OS for the ti84pse, already with programs dealing with filesystem access, minimal CAS usage, greyscale and USB support.  The reason to note this is if you want to do a lot of C coding on a calc, then note that TIOS doesn't have a libc on it.  Each compiler has its own functions and will put them in every program you build.  GlaßOS has this library in it already plus more in order to make C programs much smaller.  That's my pointer about size outputs, but it isn't impossible to use C on a calc.

<edit> That missing file is the calc's crt0, as it seems.  That's just an asm file that contains the program's header and code layout that is compiled into a .rel and linked to your code output.  Since each compiler is different, you will need to modify the ti83 version to work with the ti83p.
« Last Edit: November 20, 2011, 02:41:11 am by AHelper »
SDCC tastes like air bags - big output, but fast and safe to run.