π
<-

iostream et STL

C, C++, ASM...

Re: iostream et STL

Unread postby Legimet » 20 Mar 2014, 18:11

You can use wine instead.

It is possible to install nLaunchy in the emulator, giving a permanent install of Ndless. First boot up the emulator with OS 3.6 and install Ndless the usual way. You can transfer the files for nLaunchy, phoenix.tns and nlaunch.tns. Then remove the directory /phoenix (this is why you need to install Ndless in the beginning). Then reboot, and when you get to the os install screen, transfer nLaunchy's fake OS update. There might be an easier way, but this is how I did it.
User avatar
LegimetProgrammeur
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 8%
 
Posts: 13
Joined: 12 Dec 2013, 02:49
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby Excale » 20 Mar 2014, 18:17

Legimet wrote:Then remove the directory /phoenix (this is why you need to install Ndless in the beginning).

Go to maintenance menu and remove the OS. That's easier. :)
User avatar
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 3.9%
 
Posts: 2955
Images: 3
Joined: 10 Sep 2010, 00:00
Gender: Male
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby critor » 20 Mar 2014, 18:26

Do you have an easy way of triggering the maintenance menu on the emulator, Excale ?
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 54.2%
 
Posts: 42456
Images: 17274
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
MyCalcs profile
YouTube: critor3000
Twitter: critor2000
GitHub: critor

Re: iostream et STL

Unread postby Adriweb » 20 Mar 2014, 18:46

I've had no problem doing that simply :
Image

In order to "hold" keys, just click on one and hold it while dragging the mouse cursur out of the key. Repeat with other keys.
Then, go to the menu bar and choose Reset CPU (Alt-R)

Edit by Excale: on classic keyboard, :nsho: :nsen: :nsp:

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 82%
 
Posts: 14857
Images: 1211
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: iostream et STL

Unread postby Excale » 20 Mar 2014, 19:14

Adriweb wrote:Then, go to the menu bar and choose Reset CPU

Then, press alt+R. :) (faster)


Edit Adriweb : oui oui :P
User avatar
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 3.9%
 
Posts: 2955
Images: 3
Joined: 10 Sep 2010, 00:00
Gender: Male
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby parisse » 22 Mar 2014, 19:58

Bon, j'ai reussi a compiler ustl apres l'avoir beaucoup charcute (dans les flux, en particulier fstream). ustl::string a l'air de passer. J'ai par contre eu beaucoup de problemes avec vector, et ca vient en fait d'un gros bug dans l'interface C++ de nspireio, il faut supprimer le ifdef BUILD_LIB dans console.hpp (et uart.hpp), sinon la variable de console a un champ qui est ecrase par toute autre variable, et ca fait tout planter, j'ai perdu toute l'apres-midi a cause de ca. J'ai mis une version qui marche la:
http://www-fourier.ujf-grenoble.fr/~parisse/calc/nspire-io.tar.bz2
Pour ustl, c'est la (mais pratiquement pas teste pour le moment, et seuls les containers et les algorithmes ont une chance de marcher, pas les io/fstream)
http://www-fourier.ujf-grenoble.fr/~parisse/calc/ustl.tar.bz2
Le pire devrait etre derriere maintenant, je vais bientot pouvoir me lancer dans la compilation de giac lui-meme.
User avatar
parisseVIP++
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 94.5%
 
Posts: 3814
Joined: 13 Dec 2013, 16:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Online

Re: iostream et STL

Unread postby Lionel Debroux » 22 Mar 2014, 21:09

Great :)
ustl's reduced footprint should be a good thing, as long as it has sufficient functionality.

I've sent an English translation of your post to compu, among others.
Other people have looked deeper into porting newlib, reading documentation such as http://sourceware.org/newlib/libc.html#Stubs .
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 11.4%
 
Posts: 6873
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Re: iostream et STL

Unread postby compu » 22 Mar 2014, 22:10

Hi, thanks for fixing that bug!

About the missing float/double support: Nspireio relies on the Nspire's (vs)printf implementation which doesn't seem to support it.
User avatar
compu
Niveau 0: MI (Membre Inactif)
Niveau 0: MI (Membre Inactif)
Level up: 80%
 
Posts: 2
Joined: 01 Jan 2013, 17:15
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby Excale » 22 Mar 2014, 22:34

compu wrote:About the missing float/double support: Nspireio relies on the Nspire's (vs)printf implementation which doesn't seem to support it.

All I can say is that OS 3.1 calls printf with some %g.
Edit: with some %f too.
User avatar
ExcaleAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 3.9%
 
Posts: 2955
Images: 3
Joined: 10 Sep 2010, 00:00
Gender: Male
Calculator(s):
MyCalcs profile

Re: iostream et STL

Unread postby Legimet » 23 Mar 2014, 04:05

Of course, this will hopefully be solved once we port Newlib.
User avatar
LegimetProgrammeur
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 8%
 
Posts: 13
Joined: 12 Dec 2013, 02:49
Gender: Not specified
Calculator(s):
MyCalcs profile

PreviousNext

Return to Native: Ndless, Linux, ...

Who is online

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

Surprise...
-
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.
1704 utilisateurs:
>1693 invités
>5 membres
>6 robots
Record simultané (sur 6 mois):
29271 utilisateurs (le 11/07/2025)
-
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)