#10641 - Mr. GBA - Thu Sep 11, 2003 1:33 pm
Hi,
I have two separate files; one which must be compiled in ARM (file1.c); and one which must be compiled in THUMB (file2.c).
I have tried to compile the two files using the compiler options shown below:
gcc -c -O3 -marm file1.c
gcc -c -O3 -mthumb file2.c
gcc -marm -mthumb-interwork -o output.elf file2.o file1.o
objcopy -O binary output.elf output.gba
Once compiled, output.gba only implements code in file2.c and totally disregards code in file1.c.
I would be grateful if anyone could tell me how to efficiently compile ARM and THUMB code.
Thanks.
_________________
my dev/business site:
http://codebytesdev.afraid.org
I have two separate files; one which must be compiled in ARM (file1.c); and one which must be compiled in THUMB (file2.c).
I have tried to compile the two files using the compiler options shown below:
gcc -c -O3 -marm file1.c
gcc -c -O3 -mthumb file2.c
gcc -marm -mthumb-interwork -o output.elf file2.o file1.o
objcopy -O binary output.elf output.gba
Once compiled, output.gba only implements code in file2.c and totally disregards code in file1.c.
I would be grateful if anyone could tell me how to efficiently compile ARM and THUMB code.
Thanks.
_________________
my dev/business site:
http://codebytesdev.afraid.org