π
<-
Chat plein-écran
[^]

ICE Compiler

Assembleur, Axe, C/C++, ICE...

Re: ICE Compiler

Unread postby GalacticPirate » 15 Nov 2016, 16:45

Ti64CLi++ wrote:Nice PT_
Good chance for suit ;)

Euh, c'est anglais centre phrase ? Ça veut dire quoi ? :P
Mon profil TI-PlanetDevenez premium !
ImageImage
Modérateur de TI-Planet.org depuis décembre 2015, et membre de la communauté depuis Mai 2015.Cliquez ci-dessus pour faire un don à TI-Planet.org via PayPal et devenir Donateur ou Premium (à partir de 3€) ! Vous aurez accès à des générations illimitées et prioritaires avec Mviewer GX Creator, ainsi qu'au forum secret ! :bj: En plus, vous pourrez être orange sur le chat :troll:

Image
User avatar
GalacticPirateModo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 1.3%
 
Posts: 1156
Images: 2
Joined: 23 May 2015, 10:36
Location: Hauts-de-Seine, France
Gender: Male
Calculator(s):
MyCalcs profile
Class: M2

Re: ICE Compiler

Unread postby Lionel Debroux » 16 Nov 2016, 10:14

Je pense qu'il a voulu signifier "bonne chance pour la suite"...
"good luck going forward", "good luck for the next steps", "keep going on", "keep doing good work" seraient plus ou moins approchants et plus corrects.
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.2%
 
Posts: 6860
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Re: ICE Compiler

Unread postby Ti64CLi++ » 16 Nov 2016, 18:08

Oui, désolé pour mon anglais.
Je voulais bien dire bonne chance pour la suite:
Donc good luck going forward
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.4%
 
Posts: 3444
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Unread postby PT_ » 16 Nov 2016, 22:13

Yay, time for another update!
I've fixed some bugs, added a little bit auto-optimization, such that if you use only once Input, it won't be in the program data but in the program itself, which saves 10 bytes. This happens too for Pause, which saves either 5 or 6 bytes (if the pause time is constant 6 bytes, otherwise 5). This is rather a small update, the next one would be v2.0 with some very nice features incoming :D
Also, I've changed the type hook, to avoid conflicts with PHASM, ICE now uses the GetKey hook, and not the GetCSC hook, because PHASM already uses that. The most important update is, that I've fixed the closing parenthesis bug. When you use for example "For(A,1,2)" it will generate an error, because of the ")". I've now changed the structure a little bit, and I hope it works now. Maybe there are some more changes, I'm not sure of ;) The Commands list is a bit updated, I've added the default value for colors/clipping. I'm not sure I've already added this in the previous version, but you can now use mean(), which calculates the mean of 2 expressions.

Have fun with it :)

Download:
archives_voir.php?id=587211

Source:
https://github.com/PeterTillema/ICE - licensed under GPL v3 :)
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby grosged » 17 Nov 2016, 15:16

Hey PT_ :)
I've just taken a look at your source on github, then I forked it in order to suggest little optimisations ;)
At the moment, I'm studying the file functions.asm : I think the insert routines could be faster but...the manner I think of would require disabling interruptions. As these insert routines are there for compiling only, what d'you think of it?
User avatar
grosgedVIP++
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 30.2%
 
Posts: 770
Images: 75
Joined: 14 Sep 2011, 12:29
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby PT_ » 17 Nov 2016, 22:27

grosged wrote:Hey PT_ :)
I've just taken a look at your source on github, then I forked it in order to suggest little optimisations ;)
At the moment, I'm studying the file functions.asm : I think the insert routines could be faster but...the manner I think of would require disabling interruptions. As these insert routines are there for compiling only, what d'you think of it?

No problem, do what you want ;)
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby Flip » 24 Nov 2016, 11:09

Hello, I wanted to say that its impossible to make backups in the ICE compiled C programs, so It could be interesting to make a new kind of commands like "createappvar(" (just for example). It could be much more easy than type an hexadecimal ASM code to save highscores :) . Also, I've seen bug: the code below doesn't work (the sprites a totally random when displayed)
Code: Select all
:det(0
:Goto SPRITE
:Lbl 01
:
:"main program code"
:
:Lbl SPRITE
:DefineSprite(1,XX,XX,"XXXXXXXXXXXX..."
:Goto 01

Is it normal ?
Image

Universalis, un de mes meilleurs programmes TI 83 PCE

Avancement du projet Color Switch:
100%

feature en cours:
embellissement du gameplay
N'hésitez pas à télécharger, ça fait toujours plaisir ;) : archives_voir.php?id=873936
User avatar
FlipProgrammeur
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Level up: 81.9%
 
Posts: 77
Images: 0
Joined: 03 Nov 2015, 10:57
Location: Toulouse, France
Gender: Male
Calculator(s):
MyCalcs profile
Class: PCSI 1ere année
Facebook: profile.php?id=100010687478140

Re: ICE Compiler

Unread postby PT_ » 24 Nov 2016, 13:23

External variable storage is something for ICE v2.0 which I'm currently working on ;)

And yes, that is normal. DefineSprite( is used during compiling, but you can't find it anywhere in the output program. Also, the Goto's and Lbl's are compiled just like how they are stored in the source. It's not true that whenever it hits a Goto, it searches the corresponding label, and start compiling from there. Conclusion is that you should use DefineSprite( at the totally beginning of your code, before displaying any sprite, otherwise it wouldn't work indeed. :)
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby Flip » 24 Nov 2016, 16:13

Thank you PT_ , I'm waiting for the next release, then :D
Image

Universalis, un de mes meilleurs programmes TI 83 PCE

Avancement du projet Color Switch:
100%

feature en cours:
embellissement du gameplay
N'hésitez pas à télécharger, ça fait toujours plaisir ;) : archives_voir.php?id=873936
User avatar
FlipProgrammeur
Niveau 10: GR (Guide de Référence)
Niveau 10: GR (Guide de Référence)
Level up: 81.9%
 
Posts: 77
Images: 0
Joined: 03 Nov 2015, 10:57
Location: Toulouse, France
Gender: Male
Calculator(s):
MyCalcs profile
Class: PCSI 1ere année
Facebook: profile.php?id=100010687478140

Re: ICE Compiler

Unread postby sautax » 24 Nov 2016, 19:46

There is a bug in your new version 1.2.4 with ram cleared ....
i go back to the 1.2.3
Mes projets :
-Environnement numworks sur PC
-TILIB
-AGAME
User avatar
sautaxProgrammeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 21.6%
 
Posts: 65
Joined: 21 Sep 2016, 14:31
Location: Quelque part dans le sud
Gender: Male
Calculator(s):
MyCalcs profile
Class: Terminale S-SI
YouTube: sautax

PreviousNext

Return to Langages alternatifs

Who is online

Users browsing this forum: No registered users and 10 guests

-
Search
-
Social TI-Planet
-
Featured topics
"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.
Offre de test des nouveautés de rentrée 2024 par Casio. Enseignant(e), reçois gratuitement 1 exemplaire, à ton choix, de la Graph Light ou bien de la Graph Math+
14€ remboursés par Casio sur l'achat de ta calculatrice Graph 35 d'ici le 31 Octobre 2024
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 90+E d'ici le 31 Décembre 2024
10€ remboursés par Casio sur l'achat de ta calculatrice Graph 25 d'ici le 31 Décembre 2024
8€ remboursés par Casio sur l'achat de ta calculatrice Graph Math+ d'ici le 31 Octobre 2024
Reprise de ton ancienne fx-92 Collège ou Graph 25/35/90 à 3€ peu importe son état. Même non fonctionnelle et donc invendable, même ancienne Graph 35 non conforme aux programmes (pas de Python), même ancienne Graph 25/35 inutilisable aux examens (pas de mode examen) et donc invendable. Etiquette de retour fournie, pas de frais de port à payer.
3€ remboursés par Casio sur l'achat de ta calculatrice fx-92 Collège d'ici le 30 Septembre 2024
5€ de remise immédiate sur l'achat de ta calculatrice TI-83 Premium CE Edition Python chez les revendeurs partenaires
4€ de remise immédiate sur l'achat de ta calculatrice TI-82 Advanced Edition Python chez les revendeurs partenaires
3€ de remise immédiate sur l'achat de ta calculatrice TI-82 Advanced chez les revendeurs partenaires
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234567891011121314
-
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.
1128 utilisateurs:
>1108 invités
>15 membres
>5 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)