CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Optimisation

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Vovachess



Joined: 15 Mar 2004
Posts: 33
Location: Swiss

View user's profile Send private message Visit poster's website ICQ Number

Optimisation
PostPosted: Sat May 08, 2004 1:20 am     Reply with quote

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
PostPosted: Sat May 08, 2004 2:13 am     Reply with quote

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

View user's profile Send private message Visit poster's website ICQ Number

Optimisation
PostPosted: Sat May 08, 2004 4:41 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group