Accueil Ti-Gen Foire Aux Questions Chat sur le chan #tigcc sur IRC
Liste des membres Rechercher Aide
Bienvenue Invité !   Se connecter             Mes sujets   
Administrer
0 membre(s) et 1 visiteur(s) actif(s) durant les 5 dernières minutes Utilisateurs actifs : Aucun membre + 1 visiteur
Avant de poster sur le forum, il y a des régles de bases à respecter pour une bonne entente et un respect de tous.
Veuillez lire la charte du forum.
  :: Index » GFA-Basic TI68K » Bugs et suggestions » Aide optimisation GFA-TEM (22 réponse(s))
./REPRISE DU POST PRECEDENT (post n°19)   Marquer comme non lu.
Kevin Kofler Ecrit le: Vendredi 25 février 2005 à 22:08 Déconnecté(e)    Voir le profil de Kevin Kofler Envoyer un email à Kevin Kofler Visiter le site WEB de Kevin Kofler Envoyer un message privé à Kevin Kofler  


Note that you (at least currently) can't divide an address difference by 2 (nor by 4 or by anything else) if you compile with linker optimization enabled. (I guess I'll add half and quarter relocs at some point to address this.)
Membre de l'équipe de TIGCC: http://tigcc.ticalc.org
Mainteneur du portage Linux/Unix de TIGCC: http://tigcc.ticalc.org/linux/
Membre de l'équipe de CalcForge: http://www.calcforge.org:70/

Participez à la reprise de Ti-Gen!
    
./Post n°20   Marquer comme non lu.
geogeo Ecrit le: Jeudi 3 mars 2005 à 18:00 Déconnecté(e)    Voir le profil de geogeo Envoyer un email à geogeo Visiter le site WEB de geogeo Envoyer un message privé à geogeo  


Nyall> Your optimization in your post #18 is incorrect because the Start_Variables's and End_Variables's address are not known. Just for saying that the assembler produces an error.
-Edité le Jeudi 3 mars 2005 à 18:10 par geogeo-
Webmaster du site.
Programmeur sur TI68K. Arkanoid, Nebulus, GFA-Basic.

Plus d'informations sur GFA-Basic (un langage Basic pour TI68K).
http://www.tigen.org/gfabasic
    
./Post n°21   Marquer comme non lu.
Nyall Ecrit le: Vendredi 4 mars 2005 à 01:41 Déconnecté(e)    Voir le profil de Nyall Envoyer un email à Nyall Visiter le site WEB de Nyall Envoyer un message privé à Nyall  

geogeo :
Nyall> Your optimization in your post #18 is incorrect because the Start_Variables's and End_Variables's address are not known. Just for saying that the assembler produces an error.
-Edité le Jeudi 3 mars 2005 à 18:10 par geogeo-


If problem had anything to do with knowing the addresses, then the original code would not work.
But Kevin has already explained why it won't work. But it does work with a68k.

I am the one and only Cheerio
    
./Post n°22   Marquer comme non lu.
Kevin Kofler Ecrit le: Vendredi 4 mars 2005 à 10:15 Déconnecté(e)    Voir le profil de Kevin Kofler Envoyer un email à Kevin Kofler Visiter le site WEB de Kevin Kofler Envoyer un message privé à Kevin Kofler  


It doesn't work with A68k either if you enable support for linker optimization (-a switch in A68k, --all-relocs switch in GNU as).

I'm aware of this being an annoyance for people wanting to write fast copying routines (in fact, Iceberg has a patch to the PreOs code to change a long-by-long copy into a byte-by-byte copy because of this problem) and I'll try to implement fractional relocs (at least half and quarter relocs - maybe other fractions would be nice for the movem freaks, but I'm not sure I'll be able to implement something general enough for that case) as soon as I find a sane way to implement them. As I currently think of it, (addr1-addr2)/2 would be emitted as addr1/2-addr2/2 using 2 half relocs. The result would be undefined if addr1-addr2 is odd (Whether it is correct or not depends on how the linker ends up computing the relocation, so I'm not very comfortable claiming any sort of correct behavior for that case.) addr1/2 alone would still be an error (detected in the assembler or the linker or both) though. Quarter relocs would work similarly.
Membre de l'équipe de TIGCC: http://tigcc.ticalc.org
Mainteneur du portage Linux/Unix de TIGCC: http://tigcc.ticalc.org/linux/
Membre de l'équipe de CalcForge: http://www.calcforge.org:70/

Participez à la reprise de Ti-Gen!
    
  :: Index » GFA-Basic TI68K » Bugs et suggestions » Aide optimisation GFA-TEM (22 réponse(s))
Pages : 2/2     « 1 [2] » »|

.Répondre à ce sujet
Les boutons de code
[B]old[I]talic[U]nderline[S]trikethrough[L]ine Flip Hori[Z]ontallyFlip [V]erticallySha[D]ow[G]low[S]poilerCode [G][C]ite
Bullet [L]istList Item [K] Link [H][E]mail[P]icture SmileysHelp
Couleurs :
Saisissez votre message
Activer les smileys
     

Forum de Ti-Gen v3.0 Copyright ©2004 by Geoffrey ANNEHEIM
Webmaster: Kevin KOFLER, Content Admins: list, Server Admins: Tyler CASSIDY and Kevin KOFLER, DNS Admin: squalyl
Page générée en 35.54ms avec 18 requetes