Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
ctr0, crtbegin, GCC   Topic List   < Prev Topic  |  Next Topic >
Reply < Prev Message  | 
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




Wed Oct 31, 2001 5:03 pm

rebecca.lovelace@...
Send Email Send Email

< Prev Message  | 
Expand Messages Author Sort by Date

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...
Rebecca Lovelace
rebecca.lovelace@...
Send Email
Oct 31, 2001
5:41 pm

... You can probably get it in DevKitAdvance. ... I believe it is used for C++ constructor setup, etc. ... I've added another FAQ below. ...
Jeff Frohwein
jfrohwei
Offline Send Email
Nov 2, 2001
1:34 pm

can someone help me, i am trying to do a vblank interrupt in c++ using jeff frohwein's crt0.s and linkerscript. i read dovoto's tutorial #5 and tried to get...
kingnikus@...
kingnikus
Offline Send Email
Nov 15, 2001
10:04 pm

Make sure you're compiling your interrupt function with -marm, not - mthumb. And after handling an interrupt, set the flag for that interrupt in the IF...
DekuTree64@...
dekutree65
Offline Send Email
Nov 15, 2001
10:33 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help