EDIT Lionel: English spoken in this topic
EDIT²: I can run it with Ndless 3.1 and type things. It crashes when I press enter (which is probably what it is supposed to do since Ndless 3.1 may be missing some of features you use)
parisse a écrit:Yes, if I run it without the debugger, I get ndless_load: can't malloc. Which means that the reboot is probably a bad interaction with the malloc and gdb.
ExtendeD a écrit:Excale, do you mean pre-reserving memory space for Ndless programs? I'm not sure it's a good idea as this space would be lost for OS use. And how much should be reserved this way?
Anyway a 7M allocation on 64M system is much. Would bFLT library support help? or nl_exec() to run another program? ( http://hackspire.unsads.com/wiki/index. ... _functions )
parisse a écrit:Is there some howto that describes what needs to be done? Or even better a tarball of a working toolchain?
On my side, I could compile giac with ustl (modified), nspire-io and os.h, the resulting binary is 7M large, but it does not work. I tried to set a breakpoint at the beginning of main, but reboot happens before, it happens during static initializations, despite the fact I turned on all flags to compile giac without static object initializations. And I can't find how to set a breakpoint before main.
parisse a écrit:I have set the emulator with the 3.1 os and ndless, and I can start a debugging session, but as soon as I try to debug in the parser code, the system reboots. More precisely when I enter s in the gdb console for stepping in giac_yyparse, then it reboots. I suspect that the memory is almost full, and a memory allocation fails at the begin of the parser code.
giac.tns is now 3.9M, and it runs with 3.6, at least for 1/2+1/3
Retourner vers Native: Ndless, Linux, ...
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 29 invités