?
Bzgl. Systemfunktionen: wenn ich nur folgendes Programm habe:
int main()
{
int a, b;
a=1;
b=a+1;
return 0;
}
Wo werden hier überall Systemfunktionen verwendet?
Ich habe jetzt versucht den GCC laut der Anleitung zu übersetzen. Allerdings habe ich nicht gefunden, wo steht, wie meine Zielplattform genau heisst. Ich habe ein Nokia N800. D.h. (soweit ich weiss) ist das ein ARM11, genauer ein ARM 1136 JFS. Ich hatte zunaechst --target=arm-elf verwendet. Dann kam eine Fehlermeldung von wegen, dass die Kombination host/target nicht unterstuetzt ist.
Ich habe dann in den Quellen eine Datei arm1136jfs gefunden und habe mal
--target=arm-1136jfs-elf verwendet. Jetzt bekomme ich eine Menge anderer Fehlermeldungen, wie z.B.:
/tmp/ccfke4Xg.s:106: Error: expecting operand after ','; got nothing
/tmp/ccfke4Xg.s:107: Error: no such instruction: ldr r3,.L24+16' /tmp/ccfke4Xg.s:108: Error: no such instruction:ldreq pc,[sp],'
/tmp/ccfke4Xg.s:109: Error: expecting operand after ','; got nothing
/tmp/ccfke4Xg.s:110: Error: no such instruction: ldreq pc,[sp],' /tmp/ccfke4Xg.s:111: Error: too many memory references formov'
/tmp/ccfke4Xg.s:112: Error: no such instruction: bx r3' /tmp/ccfke4Xg.s:113: Error: no such instruction:ldr pc,[sp],'
/tmp/ccfke4Xg.s:125: Error: junk at end of line, first unrecognized character is @' /tmp/ccfke4Xg.s:126: Error: junk at end of line, first unrecognized character is@'
/tmp/ccfke4Xg.s:127: Error: invalid char '[' beginning operand 2 [sp' /tmp/ccfke4Xg.s:129: Error: no such instruction:bl frame_dummy'
/tmp/ccfke4Xg.s:131: Error: no such instruction: ldr pc,[sp],' make[3]: *** [crtbegin.o] Error 1 make[3]: Leaving directory/mnt/glibc/install/gcc-4.0.4/gcc'
make[2]: *** [extra] Error 2
make[2]: Leaving directory /mnt/glibc/install/gcc-4.0.4/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory/mnt/glibc/install/gcc-4.0.4/gcc'
make: *** [all-gcc] Error 2