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.

DSPICC Command-line DriverDSPICC Compiler Options2.4.22 --CHIPINFO: Display List of Supported ProcessorsThe --CHIPINFO option simply displays a list of processors the compiler supports. The names listedare those chips defined in the chipinfo file and which may be used with the --chip option.2.4.23 --COPT=level: Control C optimizationsThis option provides an advanced level of control over global C optimizations. With this option theglobal C optimization level may be selected (between 1 and 9). Use this option only if the –optoption doesn’t provide the optimization control that you require. Use of this option will override anysetting made via the –opt option.2.4.24 --CR=file: Generate Cross Reference ListingThe --CR option will produce a cross reference listing. If the file argument is omitted, the “raw”cross reference information will be left in a temporary file, leaving the user to run the CREF utility.If a filename is supplied, for example --CR=test.crf, DSPICC will invoke CREF to process thecross reference information into the listing file, in this case test.crf. If multiple source files areto be included in the cross reference listing, all must be compiled and linked with the one DSPICCcommand. For example, to generate a cross reference listing which includes the source modulesmain.c, module1.c and nvram.c, compile and link using the command:DSPICC --CHIP=30F6014 --CR=main.crf main.c module1.c nvram.c2.4.25 --DEBUGGER=type: Select Debugger TypeThis option is intended for use for compatibility with debuggers. DSPICC supports the MicrochipICD2 debugger and using this option will configure the compiler to conform to the requirements ofthe ICD2 (reserving memory addresses, etc.). For example:DSPICC --CHIP=30F6014 --DEBUGGER=icd2 main.c2.4.26 --ERRFORMAT=format: Define Format for Compiler MessagesIf the --ERRFORMAT option is not used, the default behaviour of the compiler is to display any errorsin a “human readable” format line with a caret “^” and error message pointing out the offendingcharacters in the source line, for example:x.c: main()4: _PA = xFF;^ (192) undefined identifier: xFF13

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

Saved successfully!

Ooh no, something went wrong!