Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sammyMaX

Pages: 1 ... 9 10 [11] 12 13 14
151
TI-Nspire / Re: [Ndless] BigNumNum Cruncher
« on: August 26, 2011, 10:51:35 am »
Yeah, that works, but it isn't very elegant (seriously, using up like half a KB of RAM is not really a worry, it just doesn't seem pretty)

152
Calculator C / Re: Setting Up Ndless C Compiler
« on: August 25, 2011, 09:09:23 pm »
Okay, I found the problem. I typed in which "arm-linux-gnueabi-gcc" and got nothing back, so I went into Synaptic and found out that while I had packages like "gcc-4.5-arm-linux-gnueabi" and "gcc-4.5-arm-linux-gnueabi-base", I never installed "gcc-arm-linx-gnueabi" because I thought it was the same thing. I already got the environment set up in Windows, but thanks so much for helping me through this!

153
TI-Nspire / Re: [Ndless] BigNumNum Cruncher
« on: August 25, 2011, 08:17:19 pm »
True... I really don't know what I was thinking when I wrote that post ??? because I had thought of realloc(), but for some reason it still seemed like a pain in the butt to write.

An update: I have 3-4 weeks to finish (at least get the most important power, factorial and multiplication functions done) before school starts. I plan on writing division and nth root approximation, but I haven't really learned that yet, so it may be far later in development when that gets implemented.

154
Calculator C / Re: C Q&A Thread
« on: August 25, 2011, 08:10:41 pm »
Yay, it works! Thanks again!

155
Calculator C / Re: C Q&A Thread
« on: August 22, 2011, 06:29:52 pm »
Here's another question I have:
To handle input in my program, I have made a
Code: [Select]
char input[500];This means the input can only be 500 characters, but if I use fancier dynamic allocation methods this problem still remains: sometimes when I type, weird characters will be outputted in front of the useful text, only to be overwritten as I type more. I might type in "12345", and then have it suddenly turn into "12345[=$_L?<". As I type in more characters, they get overwritten into "123459843406", but more random symbols may pop up later. I really don't know what would be causing that to happen, because my string drawing function has already worked on other things, and I can't find anything wrong with the key detection code. Any ideas?

156
Calculator C / Re: C Q&A Thread
« on: August 22, 2011, 05:11:46 pm »
Awww... whatever, it's not crucial to my program anyways.

157
Calculator C / Re: C Q&A Thread
« on: August 22, 2011, 01:35:38 pm »
Trying malloc() is a good way of ensuring enough RAM is available, which I guess is the only thing that matters. Would the second thing you mentioned require a modification to Ndless itself?

158
TI-Nspire / Re: [Ndless] BigNumNum Cruncher
« on: August 22, 2011, 10:35:39 am »
Some random tidbits about Lua vs. C (for Nspire programming)
1. C is much better for input, because it keys being pressed instead of the character a button corresponds to (which is sometimes a weird, non-standard character)
2. C is MUCH faster
3. Lua supports color and developing for it is much easier
4. For my program, where the input is a variable length, C is HORRIBLY hard to code. In Lua a string can be any length; getting C to create a string that can be a variable size (but stays the same length after declaration) requires malloc(), and when the string length changes each time you type... UGH!!!

159
TI-Nspire / Re: [Lua] BigNumNum Cruncher
« on: August 22, 2011, 08:43:06 am »
The -nostdlib option was the problem. (from me just modifying the makefile of the Hello sample and never catching on to that) Thanks guys!

Lol Spyro, in my school graphing calculators are required for 9th grade and above math. TI must make a lot of money off that...

160
TI-Nspire / Re: [Lua] BigNumNum Cruncher
« on: August 21, 2011, 10:03:41 pm »
Spyro - Thanks! Most people won't need it, but it could be cool to show to your friends, and for those in math competitions (like Mathcounts) it could be a life saver.

Toxic kitten - yes, I am getting an error when doing mod (%) and division. I get compiler errors like "undefined reference to '__aeabi_idivmod'" or "undefined reference to '__aeabi_uidiv'". It would really help if you could explain this to me.

161
TI-Nspire / Re: [Lua] BigNumNum Cruncher
« on: August 21, 2011, 04:47:55 pm »
Here is the UI in C (so far not functional):
On a side note, I am having a lot of trouble implementing the GMP-style limbs and branches, (Ndless isn't letting me do divison or mods) so I will revert back to my old system of numbers.

162
Calculator C / Re: Ndless Program Puts Nspire into Load
« on: August 21, 2011, 03:38:29 pm »
Thanks, I will try that. It is probably better than sleep(), which can sometimes cause lag.

163
Calculator C / Re: Ndless Program Puts Nspire into Load
« on: August 21, 2011, 01:47:04 pm »
Thanks so much! I always thought that clock was from the Nspire loading something, so I guess I was wrong! Anyways, the problem was I basically just put in TCT_Local_Control_Interrupts(0) because the Hello demo had it, without seeing why it was needed, so I removed that code and now it works!

Edit: Added another comma.

164
Calculator C / Ndless Program Puts Nspire into Load
« on: August 21, 2011, 12:04:13 pm »
My program uses a
Code: [Select]
while (!isKeyPressed(KEY_NSPIRE_ESC)) so it only exits when escape is pressed. This loops causes an annoying clock to appear, indicating heavy processor load, and also wastes battery. I have tried sleep(), but with numbers even as high as 500 milliseconds, the clock still ends up appearing, albeit taking more time to do so. Also, with numbers higher than 100 or so, a noticeable input lag appears. What is the proper way to fix this?

165
Calculator C / Re: Setting Up Ndless C Compiler
« on: August 21, 2011, 10:18:02 am »
I installed Linux under the default file system (I'm pretty sure this is ext4)

Pages: 1 ... 9 10 [11] 12 13 14