4.9 Main, Runtime Startup and Reset

Coming out of Reset, your program will first execute runtime startup code added by the compiler, then control is transfered to the function main(). This sequence is described in the following sections.