In mspgcc, where does the rest of the code that makes up the startup
function come from (where is the source)?  The mspgcc FAQ says:

        The standard library includes a start-up module that
        prepares the environment for applications written in C.

But the only source file I can find in the libc source is:

        /mspgcc/src/msp430-libc/src/gcrt0.S

This gets linked to the various processor-specific startup manuals.

I realize that the FAQ addresses how to replace the default startup with
your own, but it has a comment in it like:

        /* Your startup code goes here */

just before it calls main.  What I would like, though, is to borrow the
code that does the rest of the pre-main stuff (clear bss, initialize
statics, etc.)  I can't seem to locate the C file that is referenced by
the FAQ.

I was thinking, alternatively, that perhaps if I write a function and
force the linker to place it at .init1 that might give me a convenient
way to still use the default startup code, but link in my own hardware
initialization.  Is this possible?

--Chris

Reply via email to