07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

16-Bit C <strong>Compiler</strong> User’s Guide<br />

D.18 OPTIMIZATIONS<br />

The following optimizations are part of each compiler.<br />

D.19 OBJECT MODULE FORMAT<br />

The <strong>MPLAB</strong> C <strong>Compiler</strong> <strong>for</strong> PIC18 <strong>MCUs</strong> <strong>and</strong> the <strong>MPLAB</strong> C <strong>Compiler</strong> <strong>for</strong> <strong>PIC24</strong> <strong>MCUs</strong><br />

<strong>and</strong> <strong>dsPIC</strong> ® <strong>DSCs</strong> use different COFF File Formats that are not interchangeable.<br />

D.20 IMPLEMENTATION-DEFINED BEHAVIOR<br />

<strong>MPLAB</strong> ® C <strong>Compiler</strong> <strong>for</strong><br />

PIC18 <strong>MCUs</strong> 16-Bit Devices<br />

Branches(-Ob+)<br />

Optimization settings (-On where n is 1, 2, 3 or s)<br />

Code Straightening(-Os+)<br />

Tail Merging(-Ot+)<br />

Unreachable Code Removal(-Ou+)<br />

Copy Propagation(-Op+)<br />

Redundant Store Removal(-Or+)<br />

Dead Code Removal(-Od+)<br />

(1)<br />

Duplicate String Merging (-Om+) -fwritable-strings<br />

Banking (-On+) N/A – Banking not used<br />

WREG Content Tracking(-Ow+) All registers are automatically tracked<br />

Procedural Abstraction(-Opa+) Procedural Abstraction(-mpa)<br />

Note 1: These optimization settings will satisfy most needs. Additional flags may be used<br />

<strong>for</strong> “fine-tuning". See Section 3.5.6 “Options <strong>for</strong> Controlling Optimization” <strong>for</strong><br />

more in<strong>for</strong>mation.<br />

For the right-shift of a negative-signed integral value:<br />

• The PIC18 MCU <strong>Compiler</strong> does not retain the sign bit<br />

• The 16-Bit Device <strong>Compiler</strong> retains the sign bit<br />

DS51284H-page 208 © 2008 <strong>Microchip</strong> Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!