π
<-

size limit for debugging

C, C++, ASM...

size limit for debugging

Unread postby parisse » 17 Jul 2020, 19:14

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).
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3721
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: size limit for debugging

Unread postby Vogtinator » 17 Jul 2020, 21:42

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.
User avatar
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 1.6%
 
Posts: 217
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):
MyCalcs profile

Re: size limit for debugging

Unread postby parisse » 18 Jul 2020, 07:20

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.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3721
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: size limit for debugging

Unread postby Vogtinator » 18 Jul 2020, 10:48

User avatar
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 1.6%
 
Posts: 217
Joined: 29 Mar 2014, 15:55
Gender: Male
Calculator(s):
MyCalcs profile

Re: size limit for debugging

Unread postby parisse » 18 Jul 2020, 11:53

Great, thank you!
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 89.4%
 
Posts: 3721
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: ClaudeBot [spider] and 3 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1154 utilisateurs:
>1108 invités
>38 membres
>8 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)