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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Segment <strong>reference</strong>The <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> places code and data into named segmentswhich are referred to by the <strong>IAR</strong> XLINK Linker. Details about the segmentsare required for programming assembler language modules, and are also usefulwhen interpreting the assembler language output from the compiler.For more information about segments, see the chapter Placing code and data.Summary of segmentsThe table below lists the segments that are available in the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong><strong>Compiler</strong>:SegmentCODECSTACKCSTARTDATA16_ACDATA16_ANDATA16_CDATA16_HEAPDATA16_IDATA16_IDDATA16_NDATA16_ZDATA20_ACDATA20_ANDATA20_CDATA20_HEAPDATA20_IDATA20_IDTable 46: Segment summaryDescriptionHolds the program code.Holds the stack used by C or <strong>C++</strong> programs.Holds the startup code.Holds __data16 located constant data.Holds __data16 located uninitialized data.Holds __data16 constant data.Holds the heap used for dynamically allocated data.Holds __data16 static and global initialized variables.Holds initial values for __data16 static and global variables inDATA16_I.Holds __no_init __data16 static and global variables.Holds zero-initialized __data16 static and global variables.Holds __data20 located constant data.Holds __data20 located uninitialized data.Holds __data20 constant data.Holds the heap used for dynamically allocated data.Holds __data20 static and global initialized variables.Holds initial values for __data20 static and global variables inDATA20_I.Part 2. <strong>Compiler</strong> <strong>reference</strong> 241

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

Saved successfully!

Ooh no, something went wrong!