Bah, compare:
obj2ti:
for (; n--; R32++) {
bw2 (o16--, (unsigned short)*R32);
bw2 (o16--, (unsigned short)br4 (&dat[*R32]));
} *o16 = 0;
Totalement illisible et le terme "commentaire" paraît inconnu.
MakePrgm:
// Code relocation table
for (int i=0;i<reloc[0].count;i++)
{
WriteWord(ReadDWord(reloc[0].ofs[i]));
WriteWord(reloc[0].ofs[i]);
}
WriteWord(0); // Termination marker for TI's relocation method
Moyennement lisible et commenté, bogué.
ld-tigcc:
http://tigcc-linux.cvs.sourceforge.net/tigcc-linux/tigcc/ld-tigcc/export/exp_tios.c?revision=1.1&view=markup#l_108
Noms de variables parlants, code bien commenté et surtout
correct.
