I noticed that directive #opt does not bring optimisation.
I use PIC18F252 and have code up to 32K.
If I determine directive #opt 1..9 I get no code optimisation but If I write #opt10 I get 10% optimisation. As I see #opt 10 is not define in CCS as optimisation value but it brings results.
Strange that other values give no results.
Does anybody can comment that?
C-H Wu Guest
#opt 10 is not reliable
Posted: Sat May 08, 2004 2:13 am
3.188 Readme.txt
New PIC18 optimization has been added. To use the new optimization
add:
#opt 10
or
#opt 11
These levels of optimization have not been fully tested.
-----------------------------------------------------------------
Although #opt 10 did save more than 10% code space, however,
it crashed my program. The program still run, but, some RAM is
unexpectly overwritten, which is very very hard to debug.
So, be careful with #opt 10. I will wait until 3.199 comes out.
Vovachess
Joined: 15 Mar 2004 Posts: 33 Location: Swiss
Optimisation
Posted: Sat May 08, 2004 4:41 am
Thanks for explanation.
Lets wait until 3.199 comes out.
I have no problem with #opt 10. Programm works good. I have big code (20-25K) and 10 gives me some space more.
I will test 11
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum