11.07.2015 Views

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The DLIB runtime environmentFor the hardware initialization, it looks like this:Figure 1: Target hardware initialization phase● When the CPU is reset it will jump to the program entry label __program_startin the system startup code● The watchdog timer is disabled● The stack pointer (SP) is initialized● The function __low_level_init is called if you have defined it, giving theapplication a chance to perform early initializations.For the C/<strong>C++</strong> initialization, it looks like this:Figure 2: C/<strong>C++</strong> initialization phase●Static variables are initialized; this includes clearing zero-initialized memory andcopying the ROM image of the RAM memory of the rest of the initialized variablesPart 1. Using the compiler57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!