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.

External interface detailsIf there are nested #include files, the compiler starts searching the directory of thefile that was last included, iterating upwards for each included file, searching thesource file directory last. For example:src.c in directory dir\src#include "src.h"...src.h in directory dir\include#include "config.h"...When dir\exe is the current directory, use the following command for compilation:icc430 ..\src\src.c -I..\include -I..\debugconfigThen the following directories are searched in the order listed below for the fileconfig.h, which in this example is located in the dir\debugconfig directory:dir\includedir\srcdir\includeCurrent file is src.h.File including current file (src.c).As specified with the first -I option.dir\debugconfig As specified with the second -I option.Use angle brackets for standard header files, like stdio.h, and double quotes for filesthat are part of your application.Note: Both \ and / can be used as directory delimiters.<strong>Compiler</strong> outputThe compiler can produce the following output:●●●A linkable object fileThe object files produced by the compiler use a proprietary format called UBROF,which stands for Universal Binary Relocatable Object Format. By default, the objectfile has the filename extension r43.Optional list filesDifferent types of list files can be specified using the compiler option -l, see -l, page153. By default, these files will have the filename extension lst.Optional preprocessor output filesA preprocessor output file is produced when you use the --preprocess option; bydefault, the file will have the filename extension i.Part 2. <strong>Compiler</strong> <strong>reference</strong>135

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

Saved successfully!

Ooh no, something went wrong!