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 > what this file is?

#7106 - Link - Mon Jun 09, 2003 7:15 pm

crt0.o

#7108 - Lupin - Mon Jun 09, 2003 7:56 pm

I think it's something like an header/entry point of the binary. There you could define some global constants wich tell the GBA how to run the binary. But I'm not completely sure about the real meaning/sense of this file, I also wonder what these crtbegin.o and crtend.o files do...

#7140 - JL - Tue Jun 10, 2003 12:54 pm

Link,

Crt0.o contains (in this context) the GBA specific initialization and termination routines. It's being invoked automagically when you download your rom into gba and makes sure the program starts up nicely.

Since you're asking this question, you should probably not worry about it and just link it in your project.

Grtz,
JL