Re: [arm-gnu] C run-time initialization code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] C run-time initialization code



Richard

> I’m looking for the c-runtime initialization.  The code clears the .bss and
> that copies initialization values from rom to .data and then calls main.  On
> the M3, it generally also has the exception/interrupt vectors.

Since it is CM3, you do not need any assembler. Just take the code you
found as reference.

The vectors are fine defined as array placed at 0, the cstartup can be
done with a set of memcpy and memset.

-- 
42Bastian
+
| http://www.sciopta.com
| Fastest direct message passing kernel.
| IEC61508 certified.
+