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.

Descriptions of segmentsSegmentDATA20_NDATA20_ZDIFUNCTINTVECISR_CODEREGVAR_ANRESETDescriptionHolds __no_init __data20 static and global variables.Holds zero-initialized __data20 static and global variables.Holds pointers to code, typically <strong>C++</strong> constructors, that should beexecuted by the system startup code before main is called.Contains the reset and interrupt vectors.Holds interrupt functions when compiling for the <strong>MSP430</strong>X architecture.Holds __regvar located uninitialized data.Holds the reset vector.Table 46: Segment summary (Continued)Descriptions of segmentsThis section gives <strong>reference</strong> information about each segment.The segments are placed in memory by using the segment placement linker directives-Z and -P, for sequential and packed placement, respectively. Some segments cannotuse packed placement, as their contents must be continuous.In each description, the segment memory type—CODE, CONST, or DATA—indicateswhether the segment should be placed in ROM or RAM memory; see Table 5, XLINKsegment memory types, page 32.For information about the -Z and the -P directives, see the <strong>IAR</strong> Linker and Library ToolsReference Guide.For information about how to define segments in the linker command file, seeCustomizing the linker command file, page 33.For detailed information about the extended keywords mentioned here, see the chapterExtended keywords.CODEDescriptionSegment memory typeMemory placementAccess typeHolds program code, except the code for system initialization.CODE<strong>MSP430</strong>: 0x0002–0xFFFF<strong>MSP430</strong>X: 0x00002–0xFFFFFRead-only242<strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>Reference Guide

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

Saved successfully!

Ooh no, something went wrong!