Do you need to change the XC8 or XC16 or XC32 compiler optimization level? You can choose it on below window.
There are two kinds of method to select Project Properties.
1. MPLAB X --> Project name --> "Right click on project name" --> Properties
2. MPLAB X --> Dashboard --> Properties
Please refer to the optimization level option as below.
- 0 - Do not optimize. The compiler’s goal is to reduce the cost of compilation and to make debugging produce the expected results. - 1 - Optimize. Optimizing compilation takes somewhat longer, and a lot more host memory for a large function. The compiler tries to reduce code size and execution time. - 2 - Optimize even more. The compiler performs nearly all supported optimizations that do not involve a space-speed trade-off. - 3 - Optimize yet more favoring speed (superset of O2). - s - Optimize yet more favoring size (superset of O2). |
'Embedded' 카테고리의 다른 글
코드 주석 처리하기(단축키) (0) | 2019.01.08 |
---|---|
CAN 통신 - CAN Tranceiver의 통신 레벨 (0) | 2019.01.06 |
CAN 통신(캔 통신) Message IDs(메시지 IDs) (0) | 2019.01.06 |
CAN 통신(캔 통신) 소개하기 (0) | 2019.01.06 |
How much optimize depend on optimization level of compiler? (0) | 2019.01.02 |