optimization of embedded resources

Status
Not open for further replies.
Please forgive the interruption. May I ask which IDE you're using, and, if MPLAB, where the resource usage manager is, please?

TIA. Cheerful regards, Mike

You are welcome to jump in anytime..

Its not really the resource manager.... Its the memory usage manager/ Gauge... ( It's probably the only resource we use on Pic's anyway ).
 

Back at work from two week holiday. I quickly compiled my current project with -Os and -O3.


results:
O3: 13794 bytes
Os: 10076 bytes

The difference is more significant than I expected. I did not measure any performance yet. I'll post here if I do some more testing.

I have an elaborate I2C library which has lots of small functions. I think most of the optimization involves inlining those small functions... which is kind of useless on a blocking I2C communication. Only wastes memory.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…