11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2DSPICC Command-line DriverDSPICC is the driver invoked from the command line to compile and/or link C programs. DSPICChas the following basic command format:DSPICC [options] files [libraries]It is conventional to supply the options (identified by a leading dash “-” or double dash “–”) beforethe filenames.The options are discussed below. The files may be a mixture of source files (C or assembler)and object files. The order of the files is not important, except that it will affect the order in whichcode or data appears in memory. Libraries are a list of library names, or -L options, see Section2.4.7. Source files, object files and library files are distinguished by DSPICC solely by the file type orextension. Recognized file types are listed in Table 2.1. This means, for example, that an assemblerfile must always have a .as extension (alphabetic case is not important).DSPICC will check each file argument and perform appropriate actions. C files will be compiled;assembler files will be assembled. At the end, unless suppressed by one of the options discussed later,Table 2.1: DSPICC file typesFile TypeMeaning.c C source file.as Assembler source file.obj Relocatable object code file.lib Relocatable object library file3

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

Saved successfully!

Ooh no, something went wrong!