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.

Include file search procedure●Via environment variablesThe compiler automatically appends the value of the environment variables to everycommand line; see Environment variables, page 134.● Via a text file by using the -f option; see -f, page 152.For general <strong>guide</strong>lines for the option syntax, an options summary, and a detaileddescription of each option, see the <strong>Compiler</strong> options chapter.ENVIRONMENT VARIABLESThe following environment variables can be used with the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong><strong>Compiler</strong>:Environment variable DescriptionC_INCLUDEQCC430Table 27: <strong>Compiler</strong> environment variablesSpecifies directories to search for include files; for example:C_INCLUDE=c:\program files\iar systems\embeddedworkbench 4.n\430\inc;c:\headersSpecifies command line options; for example: QCC430=-lA asm.lstInclude file search procedureThis is a detailed description of the compiler’s #include file search procedure:●●●If the name of the #include file is an absolute path, that file is opened.If the compiler encounters the name of an #include file in angle brackets, such as:#include it searches the following directories for the file to include:1 The directories specified with the -I option, in the order that they werespecified, see -I, page 153.2 The directories specified using the C_INCLUDE environment variable, if any, seeEnvironment variables, page 134.If the compiler encounters the name of an #include file in double quotes, forexample:#include "vars.h"it searches the directory of the source file in which the #include statement occurs,and then performs the same sequence as for angle-bracketed filenames.134<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!