π
<-
Chat plein-écran
[^]

size limit for debugging

C, C++, ASM...

size limit for debugging

Message non lude parisse » 17 Juil 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).
Avatar de l’utilisateur
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 77.8%
 
Messages: 3511
Inscription: 13 Déc 2013, 16:35
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: size limit for debugging

Message non lude Vogtinator » 17 Juil 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.
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: size limit for debugging

Message non lude parisse » 18 Juil 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.
Avatar de l’utilisateur
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 77.8%
 
Messages: 3511
Inscription: 13 Déc 2013, 16:35
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: size limit for debugging

Message non lude Vogtinator » 18 Juil 2020, 10:48

Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: size limit for debugging

Message non lude parisse » 18 Juil 2020, 11:53

Great, thank you!
Avatar de l’utilisateur
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 77.8%
 
Messages: 3511
Inscription: 13 Déc 2013, 16:35
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile


Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

Utilisateurs parcourant ce forum: Bing [Bot] et 10 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
906 utilisateurs:
>873 invités
>28 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)