FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2009 Threads] MPLAB C30 optimization options for FreeRTOSPosted 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 FreeRTPosted 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.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|