0 Members and 1 Guest are viewing this topic.
Does anyone know why nspire C programs are compiled into ARM7 binaries, rather than ARM9?
ASFLAGS = -mcpu=arm7tdmiGCCFLAGS = -mcpu=arm7tdmi
ASFLAGS = -mcpu=arm9tdmiGCCFLAGS = -mcpu=arm9tdmi
I changed this:Code: [Select]ASFLAGS = -mcpu=arm7tdmiGCCFLAGS = -mcpu=arm7tdmito this:Code: [Select]ASFLAGS = -mcpu=arm9tdmiGCCFLAGS = -mcpu=arm9tdmiand the program I compiled ran just fine. We might as well use it, because we do have an ARM9 processor.
arm-elf-gcc -mcpu=arm926ej-s -O3 -Wall -W -fpie -fno-merge-constants -c -I./headers -D NON_CAS main.cmain.c: In function 'main':main.c:66: warning: passing argument 2 of 'sprite' discards qualifiers from pointer target typegraphics.h:3: note: expected 'char *' but argument is of type 'const char *'main.c:74: warning: passing argument 1 of '270019872u' discards qualifiers frompointer target typemain.c:74: note: expected 'char *' but argument is of type 'const char *'arm-elf-gcc -mcpu=arm926ej-s -O3 -Wall -W -fpie -fno-merge-constants -c -I./headers -D NON_CAS syscalls.carm-elf-gcc -mcpu=arm926ej-s -O3 -Wall -W -fpie -fno-merge-constants -c -I./headers -D NON_CAS utils.carm-elf-gcc -mcpu=arm926ej-s -O3 -Wall -W -fpie -fno-merge-constants -T ./system/ldscript ./system/crt0.s main.o syscalls.o utils.o -o demo.elfc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-atexit.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-atexit.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-exit.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-exit.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-impure.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-impure.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-init.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-init.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-memset.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-memset.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__atexit.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__atexit.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__call_atexit.o) uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/lib\libc.a(lib_a-__call_atexit.o)c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtend.o uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtend.oc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: error: c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtn.o uses FPA instructions, whereas demo.elf does notc:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: failed to merge target specific data of file c:/program files/yagarto/bin/../lib/gcc/arm-elf/4.4.2/crtn.ocollect2: ld returned 1 exit statusmake: *** [demo] Error 1