Make Your Code Small for FREE

Microchip’s FREE optimizing compilers are great, but are you sure you’re getting all of the code size benefit that you can from them? For backwards compatibility reasons, not all of the optimizations are turned on by default. All optimizations are easily controlled from the project properties in MPLAB® X IDE. For MPLAB® XC8, there are three important selections: choose “Generated Assembler Code” and “Assembler Files” and make sure you deselect “Speed.” This will give you the tightest code generation.

properties1.png

It’s even simpler for MPLAB® XC16 and XC32. In the same project properties, simply choose Optimization Level 1.

properties2.png

That’s all it takes to get the smallest possible code size for all of the FREE optimizing MPLAB® XC compilers!

20th Annual
Microchip MASTERs Conference 2016
Register now - Deadline: July 29

JW Marriott Desert Ridge Resort-Phoenix, AZ

© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.