Page 1 of 1

BASIC to Asm on-calc translator

Posted: Sat 09 Jan, 2010 11:39 pm
by bongo
So when executing a BASIC program, the calculator has to translate into Asm, and the Calculator's obviously equipped to create copies of programs as is evident in RCL, groups and other such things. Now, I don't know if something like this already exists, but I think it would be cool if there were a program which translated a BASIC programs into Asm and saved a copy of it, so you could run it as an Asm program. Anyone agree?

Re: BASIC to Asm on-calc translator

Posted: Sun 10 Jan, 2010 2:37 am
by calc84maniac

Re: BASIC to Asm on-calc translator

Posted: Sun 10 Jan, 2010 2:42 am
by bongo
I think you missed the point... :?

Re: BASIC to Asm on-calc translator

Posted: Sun 10 Jan, 2010 2:51 am
by benryves
The calculator doesn't convert anything into assembly; it reads commands from the program one by one and executes them in sequence. "Compiling" this into an assembly program would result in something that was far larger than the original program with a negligible speed increase.

I suppose you could write an assembly program that included a copy of the original tokenised program, and extracted a copy of it and asked the TI-OS to execute that copy. BasicBuilder does something like this.

If you mean writing an on-calculator optimising compiler - "good luck". :-)