I know this is kind of a newbie set of questions, but I've been digging
around the FAQs, docs, archives, and I can't find the answers.
I downloaded the GCC from http://gccgba.gbacode.net (I am running Win2000)
It came with crt0.S and lnkscript in the /extra folder
Now, I am trying to understand how things work and how I should do things.
If I just compile a c file with a simple makefile (no special flags), it is
asking me for crtbegin.o, which is referred to by lnkscript. So I assume
that lnkscript is automatically used when GCC links because it's in the
/extra folder. Is that correct?
Next question, where can I get the correct copy of crtbegin.o? It's not in
my distribution, I tried DL-ing the c and c++ versions just in case and it
was in neither.
What does crtbegin.o do? What was it compiled from?
Finally, what is the story with crt0.s? It seems to set things up and
branch to your C code, so is it required in all GCC projects?
Thanks!!
Rebecca