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.

Placing code and dataSome instructions do not work unless a certain condition holds after linking, forexample that a branch must be within a certain distance or that an address must be even.XLINK verifies that the conditions hold when the files are linked. If a condition is notsatisfied, XLINK generates a range error or warning and prints a description of theerror.For further information about these types of errors, see the <strong>IAR</strong> Linker and Library ToolsReference Guide.LINKER MAP FILEXLINK can produce an extensive cross-<strong>reference</strong> listing, which can optionally containthe following information:●●●A segment map which lists all segments in dump orderA module map which lists all segments, local symbols, and entries (public symbols)for every module in the program. All symbols not included in the output can also belistedModule summary which lists the contribution (in bytes) from each module● A symbol list which contains every entry (global symbol) in every module.Use the option Generate linker listing in the <strong>IAR</strong> Embedded Workbench IDE, or theoption -X on the command line, and one of their suboptions to generate a linker listing.Normally, XLINK will not generate an output file if there are any errors, such as rangeerrors, during the linking process. Use the option Range checks disabled in the <strong>IAR</strong>Embedded Workbench IDE, or the option -R on the command line, to generate an outputfile even if a range error was encountered.For further information about the listing options and the linker listing, see the <strong>IAR</strong> Linkerand Library Tools Reference Guide, and the <strong>MSP430</strong> <strong>IAR</strong> Embedded Workbench® IDEUser Guide.Part 1. Using the compiler43

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

Saved successfully!

Ooh no, something went wrong!