SW006012 Microchip Technology, SW006012 Datasheet - Page 52

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
DS51284F-page 46
®
C30 User’s Guide
3.5.5
The following options are used for debugging.
TABLE 3-7:
3.5.6
The following options control compiler optimizations.
TABLE 3-8:
-g
-Q
-save-temps
-O0
-O
-O1
Option
Options for Debugging
Options for Controlling Optimization
Option
DEBUGGING OPTIONS
GENERAL OPTIMIZATION OPTIONS
Produce debugging information.
MPLAB® C30 supports the use of -g with -O making it possible
to debug optimized code. The shortcuts taken by optimized code
may occasionally produce surprising results:
• Some declared variables may not exist at all;
• Flow of control may briefly move unexpectedly;
• Some statements may not be executed because they
• Some statements may execute in different places because
Nevertheless it proves possible to debug optimized output. This
makes it reasonable to use the optimizer for programs that might
have bugs.
Makes the compiler print out each function name as it is
compiled, and print some statistics about each pass when it
finishes.
Don’t delete intermediate files. Place them in the current direc-
tory and name them based on the source file. Thus, compiling
foo.c with -c -save-temps would produce the following
files:
foo.i
foo.p
foo.s
foo.o
Do not optimize. (This is the default.)
Without -O, the compiler’s goal is to reduce the cost of compi-
lation and to make debugging produce the expected results.
Statements are independent: if you stop the program with a
breakpoint between statements, you can then assign a new
value to any variable or change the program counter to any
other statement in the function and get exactly the results you
would expect from the source code.
The compiler only allocates variables declared register in
registers.
Optimize. Optimizing compilation takes somewhat longer, and
a lot more host memory for a large function.
With -O, the compiler tries to reduce code size and execution
time.
When -O is specified, the compiler turns on
-fthread-jumps and
-fomit-frame-pointer.
compute constant results or their values were already at
hand;
they were moved out of loops.
-fdefer-pop. The compiler turns on
(preprocessed file)
(pre procedure abstraction assembly language file)
(assembly language file)
(object file)
Definition
Definition
© 2007 Microchip Technology Inc.

Related parts for SW006012