1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

arm + gcc + newlib + crt0

Discussion in 'Embedded' started by slide, Sep 29, 2011.

  1. slide

    slide Guest

    At my work we have been using ARM based gcc compilers for a long time. All of the ones we have used in the past included a crt0 which we branched to (_mainCRTStartup) to initialize the stack, heap, process the command line and then branch to main (the stack, heap, etc issued a swi which we handled and did the appropriate action). In the newer toolchains built for embedded (none-eabi) it doesn't seem like crt0 is around anymore. Do I just need to do the things that crt0 did in my own code, or is there a newer method for starting up the C runtime before getting to main?

    Thanks for any information you can give me.

    Slide
    slide, Sep 29, 2011
    #1
    1. Advertising

  2. slide

    DJ Delorie Guest

    Last I checked, libgloss (part of newlib) still used crt0.S for startup,
    and gcc still looked for it, outside of arm-linux at least.

    If your tools supplier does otherwise, you need to read their
    documentation to figure it out.

    hmmm... perhaps it's the target triplet you're using?
    DJ Delorie, Sep 29, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pablo Bleyer

    GNUARM with Newlib-1.12.0

    Pablo Bleyer, Feb 6, 2004, in forum: Embedded
    Replies:
    0
    Views:
    383
    Pablo Bleyer
    Feb 6, 2004
  2. Replies:
    0
    Views:
    363
  3. newlib stubs location

    , May 14, 2007, in forum: Embedded
    Replies:
    0
    Views:
    263
  4. Ilgaz Ocal
    Replies:
    0
    Views:
    1,323
    Ilgaz Ocal
    Jun 5, 2005
  5. Mike
    Replies:
    19
    Views:
    2,042
Loading...

Share This Page