1

Voila, je m'explique:
Je voudrais compiler une unique fonction et pouvoir l'ajouter dans le projet que je veux.. (ajouter donc le code binaire..) et pouvoir faire appelle a ma fonction.

!! Attention !! je ne veux pas avoir de *.a....
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!

2

Ce n'est pas possible. TIGCC ne génère pas de code PC-relatif. (Il y a une option -mpcrel pour générer du code PC-relatif, mais elle ne marche pas.) Tout code C doit être relogé avec EX_patch.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

3

ça serait pas possible de générer uniquement le .o ?

tu met ta fonctions dans un fichier .c
tu compile via ligne de commande ce fichier .c
(quelque chose du style tigcc -c -Ox -W -Wall mon_fichier.c il me semble que -c est le switch qu'il faut pr obtenir le .o et ne pas aller plus loin (ne pas essayer de faire le linkage)
=> tu peux ensuite utiliser ton fichier .o

ça marche pas en faisant ça ?
(ou alors, j'ai mal comrpis la question)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

4

Ça marche peut-être avec -mpcrel s'il a de la chance (ce switch est très bogué actuellement). Sinon, ça ne pourra pas marcher parce que le code doit être relogé et ne peut donc pas être extrait comme ça d'un fichier .o.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

5

arf, bon, OK.
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

6

ya pas moyen d'introduire le code comme pour une fonction exec?
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!

7

si, c parfaitement possible.
tu met ton code (l'équivalent en hexa du code produit) dans une liste C.
puis tu fais un petit coup d'EX_patch dessus, comme le disait Kevin.

et _miracle_ grin ça marche.
(je l'ai déjà fait, je sais que c possible)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

8

erf trop compliqué...sad
au fait squale92... va voir le topic Xlib ya un cadeau pour toismile
XLib v1.00 Powerrrrrrrrrrrrrrrrrrrr!

9

je suis en train de le dl smile
merci smile
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall