361
Calculator C / Re: Make functions of one program available for other programs?
« on: August 24, 2011, 04:46:55 pm »
Does it crash before the call or within the function called?
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. 361
Calculator C / Re: Make functions of one program available for other programs?« on: August 24, 2011, 04:46:55 pm »
Does it crash before the call or within the function called?
363
Other Calculators / Re: Just bought a TI-Nspire CX CAS, came with 3.0.2« on: August 23, 2011, 04:32:48 pm »
Here are more: http://hackspire.unsads.com/wiki/index.php/Lua_Programs
364
Lua / Re: Lua Q&A« on: August 23, 2011, 12:40:21 pm »
Make your code slightly more simple by replacing string.len(msg) with #msg
365
Calculator C / Re: C Q&A Thread« on: August 23, 2011, 04:06:31 am »
We would need the code snippet which fills up "input[] to be able to help you, the problem may be there.
366
TI-Nspire / Re: rshell - A simple RS232 shell for the Nspire« on: August 22, 2011, 04:28:48 pm »
Nice compu
I really should export Ndless's program launcher to let you call it instead of replicating it in your shell. This would avoid: - bugs duplication such as the missing clear_cache() in your code which may make the launch crash in some conditions - breaking your shell if the program format changes, which may happen when new features are included (such as compatibility flags or other programs metadata) 367
Calculator C / Re: Make functions of one program available for other programs?« on: August 22, 2011, 04:25:03 pm »
Sharing functions dynamically would require dynamic libraries, which is not supported and not really planned in Ndless. But these functions can also be exported as a static library, bound with the program launched at compile time (see how libndls is built and used or bwang's C library somewhere on Omnimaga).
Sharing variables would require a Shared memory, I don't know if the TI-Nspire includes anything like this. A dirty workaround would be to pass the address of a memory block allocated by the shell to the programs launched as a command line parameter, and access the variables relatively to this base address. This could also be used to call back dynamically functions from the shell by the way. 368
Calculator C / Re: C Q&A Thread« on: August 22, 2011, 04:12:18 pm »
Actually yes, the OS variable is currently not exported.
369
TI-Nspire / Re: TI-Nspire GB Emulator« on: August 22, 2011, 12:52:13 pm »
Great!
Could you edit the first post of the topic (or create a new topic) so that any new user can find this version easily? 370
Calculator C / Re: C Q&A Thread« on: August 22, 2011, 12:50:07 pm »
Just try to malloc() or realloc() and check a NULL return.
We could also try to export in Ndless the Nucleus memory pool object used by the OS and make possible direct reads of the free space value from the structure. 371
Computer Projects and Ideas / Re: Maximum Over Drive System - Lua Assembly Toolkit« on: August 22, 2011, 10:36:51 am »
Interesting project
I'd love to see how TI-Nspire programs will benefit from it. 372
Calculator C / Re: Setting Up Ndless C Compiler« on: August 22, 2011, 10:29:04 am »EDIT: Could the Nspire-gcc errors be due to the ARM toolchain not being set up correctly? I installed an arm-linux-gnueabi instead of the recommended arm-none-eabi.Ok: - Make sure "which arm-linux-gnueabi-gcc" returns something in a console - Replace all the occurences of "arm-linux-gnueabi-gcc" with "arm-linux-gnueabi-gcc" in the scripts nspire-gcc, nspire-as and nspire-ld. 373
Calculator C / Re: C Q&A Thread« on: August 20, 2011, 01:37:16 am »
I suppose you were trying to declare a variable within the "for" statement.
374
Calculator C / Re: Setting Up Ndless C Compiler« on: August 20, 2011, 01:35:09 am »
Ok.
And now what does this returns from the same folder: sh -x ./nspire-gcc ? Sorry for all these tests, but I can't see any other way. 375
Lua / Re: Lua problems and bugs« on: August 19, 2011, 10:23:48 am »
Sure, but obviously telling them doesn't help either.
|
|