It seems that there is a size limit for ndless executables, above that limit remote debug does not work anymore. The limit is around 4M for the compressed tns.
I experimented that with the latest version of KhiCAS, with exactly the same sources if I enable online help inside the source debugging fails (tns size 4538874 bits), if I disable online help debugging works (tns size 4205207).
size limit for debugging
5 posts
• Page 1 of 1
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3721
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
Re: size limit for debugging
It's actually 8 MiB for the entire size of the executable in RAM (.text + .(ro)data + .bss): https://github.com/ndless-nspire/Ndless ... less.h#L52
You can use "genzehn --info --input foo.tns" to get the size a tns needs for loading.
It could be increased a bit, but only on CX where 64MiB of RAM are available otherwise it breaks on OS 3.9 on non-CX or CM.
You can use "genzehn --info --input foo.tns" to get the size a tns needs for loading.
It could be increased a bit, but only on CX where 64MiB of RAM are available otherwise it breaks on OS 3.9 on non-CX or CM.
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Posts: 217
- Joined: 29 Mar 2014, 15:55
- Gender:
- Calculator(s):→ MyCalcs profile
Re: size limit for debugging
Increasing this limit would be very welcome for KhiCAS, the uncompressed file size with help is currently 9039936 bytes, without help 8185116 bytes. For me it's really important to have debugger support, and I need it on firebird-emu, where I have a CX flash image.
I'll try with 12 MB.
I'll try with 12 MB.
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3721
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
-
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)- Posts: 217
- Joined: 29 Mar 2014, 15:55
- Gender:
- Calculator(s):→ MyCalcs profile
Re: size limit for debugging
Great, thank you!
-
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)- Posts: 3721
- Joined: 13 Dec 2013, 16:35
- Gender:
- Calculator(s):→ MyCalcs profile
5 posts
• Page 1 of 1
Return to Native: Ndless, Linux, ...
Who is online
Users browsing this forum: ClaudeBot [spider] and 4 guests