0 Members and 2 Guests are viewing this topic.
I have made minimal modifications to the code, and it compiles and links without major warnings.
"insert a message": how? why? Like a debug message?
I'm going to re-compile everything now so I can get more precise information for you. Should I add the -mlong-calls to the command line? Should I not use nspire-gcc?
What do I want to do with exceptions in C? I don't know, but the makefile that came with mathomatic apparently had it in.
Debug it: I can't. The emulator requires boot1 and boot2 and polydumper only dumps my boot1 for some reason, which I can't figure out.
nspire-gcc -Og -g -Wall -Wshadow -Wno-char-subscripts -Wno-unused-variable -marm -mlong-calls -fno-exceptions -DLIBRARY -DVERSION=\"`cat ../VERSION`\" -DSILENT=1 -DSECURE -DHANDHELD -c -o lib.o lib.ccc1.exe: error: argument to '-O' should be a non-negative integermake: *** [lib.o] Error 1-Og throws the error I expected it too...where am I wrong here?
Oh, and if I compile with arm-none-eabi-gcc, the calc freezes on the document screen right when I click on mathomaticndless.tns. I'm curious: why then and not after it loads the console?
The emulator worked fine until I restarted it.
And I can't find the malloc function. "system" folder in where?
So it seems like the DEFAULT_N_TOKENS HAS to be at least 100....and, the documentation says mathomatic can run on a few mb's of RAM, so I shouldn't have to hack it down lower.