Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


MPLAB C30 optimization options for FreeRTOS

Posted by JohnT on April 10, 2009
Is there a rational for selecting -O2 optimisation level for the dsPIC_MPLAB demo (FreeRTOS V5.2.0) ? I can't find any explanation of the setting in the code and/or notes and the code appears to compile and run OK with any of the -O settings, but is there an optimum setting and any hidden dangers in not using -O2 ?

Full C30 setting is

-fno-omit-frame-pointer -g -Wall -DMPLAB_DSPIC_PORT -O2 -fno-schedule-insns -fno-schedule-insns2

RE: MPLAB C30 optimization options for FreeRT

Posted by Richard on April 10, 2009
There was a C30 compiler version that contained a bug at no optimisation - something to do with the frame pointer usage, hence the release was provided with optimisation turned on. That was quite some time ago now and the compiler bug has long since been fixed. If you are using a recent compiler version then I am not aware of any reason why it would not work at all optimisation levels.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.0 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner