gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Roms built with arm-gcc-elf do nothing

#28490 - jza - Mon Nov 01, 2004 10:54 am

I am trying to set up devkitARM in Linux but all sources that I compile just give a blank screen.

The devkitARM is installed under /usr/local and I have /usr/local/devkitARM_r8/bin in my $PATH. I compile with:

Code:

arm-elf-gcc -mthumb-interwork -specs=gba.specs -c test.s
arm-elf-objcopy -O binary test.o test.gba


I grabbed some ASM examples from here and it seems that the binaries I get from the compiler are slightly smaller than the precompiled ones. And whether I run the rom in an emulator or a GBA, it just does nothing. Something missing here?

#28494 - tepples - Mon Nov 01, 2004 5:12 pm

Try this:
Code:
arm-elf-gcc -mthumb-interwork -specs=gba.specsĀ  test.sĀ  -o test.elf
arm-elf-objcopy -O binary test.elf test.gba

some minor changes whose explanation you will better be able to understand once you get it working or not working.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#28496 - jza - Mon Nov 01, 2004 7:15 pm

Quote:
some minor changes whose explanation you will better be able to understand once you get it working or not working.


Good idea, since no linking is done. :)

There's no stupid questions, just stupid people...