Calculator Community > Lua

Relative speed of Lua?

<< < (5/6) > >>

willrandship:
But I can make nicer ones for less by hand :P and I can't think of a mac benefit that doesn't happen through linux, for myself anyhow. (except TI link support :P)

z80man:

--- Quote from: Hot_Dog on April 19, 2011, 08:51:27 pm ---
--- Quote from: willrandship on April 19, 2011, 08:50:13 pm ---Well, the Calc is at least 15 times more powerful. ARM vs z80, ARM wins. even if the z80s were 150 mhz, they would still lose.

--- End quote ---

Partly, but not fully, because it has automatic multiplication (in z80, we have to do multiplication ourselves!)

--- End quote ---
In how many cycles can the ARM do multiplication? As an example the SH4A can do 32 *32 = 64, 32 * 32 = 32, @32 * @32 = 32 in 2 cycles. And it does 16 * 16 = 32 in 1 cycle. This is of course only when it is written properly. Otherwise it is 5 cycles and 3 cycles respectively.

And for the linux thing. Is it possible to use wine for the nspire link support and LUAtoTNS.

ingalls:
If you go on over to hackspire there is a lua2tns program, I don't know if it is the exact same one as you are thinking but in short yes there is an easy way to get lua to tns on linux. I haven't tried tilink on wine but from past experience wine programs can't usually connect to external devices (At least with all of the programs I've ever tried) It's always worth a shot though! Give me a shout if you get it working!

calc84maniac:

--- Quote from: z80man on April 23, 2011, 06:04:30 pm ---
--- Quote from: Hot_Dog on April 19, 2011, 08:51:27 pm ---
--- Quote from: willrandship on April 19, 2011, 08:50:13 pm ---Well, the Calc is at least 15 times more powerful. ARM vs z80, ARM wins. even if the z80s were 150 mhz, they would still lose.

--- End quote ---

Partly, but not fully, because it has automatic multiplication (in z80, we have to do multiplication ourselves!)

--- End quote ---
In how many cycles can the ARM do multiplication? As an example the SH4A can do 32 *32 = 64, 32 * 32 = 32, @32 * @32 = 32 in 2 cycles. And it does 16 * 16 = 32 in 1 cycle. This is of course only when it is written properly. Otherwise it is 5 cycles and 3 cycles respectively.

--- End quote ---
The ARM9EJ-S processor does the following multiplications (with optional accumulate operand):
32-bit = 16-bit*16-bit (signed only, 1-2 cycles)
32-bit = (32-bit*16-bit)>>16 (signed only, 1-2 cycles)
32-bit = 32-bit*32-bit (2-3 cycles)
64-bit = 32-bit*32-bit (signed or unsigned, 3-4 cycles)
64-bit += 16-bit*16-bit (signed only, 2-3 cycles)

Also, these instructions use the general-purpose registers as destinations.

willrandship:
@z80man, no, WINE can't do hardware. There is TilP tho, and there's a Linux version of Lua2TI.

Unfortunately, OS 3.0 can't send with TilP. Can't test for the docs.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version