Artemis, my close friend, has urged me to learn much more about the bare-metal details of getting code running and supporting the familiar features that we often take for granted in C++. It is actually a very interesting topic and a beneficial thing to understand when working on embedded systems. Sadly, however, it is a fairly challenging topic to find information about on the internet - and what you can find is daunting, to say the least.
Since we are not fans of reinventing the wheel we've developed some examples you can follow along with using an Artemis board. After doing so you will know:
- How the linker organizes compiled code
- How startup code initializes variables
- How the stack and heap are managed
- How global/static object constructors are conveniently called before you get to
Check out the examples, explanation and instructions on the embedded-startup exploration repo!