Thursday, November 17, 2011

100% Flash utilization !!

Posted by Omkar on May 7, 2009

Sometimes we met with interesting coincidences while working on projects. One such coincident happened just few moments ago … interesting and hence sharing with you all.

I was working on one small project and was frustrated as the code was not working as expected … so I have added couple of lines of debugging code and recompiled the code in CodeVisionAVR … boom … I got an error : program size exceeds the flash ! Well I was wondering what can be done ? I didn’t want to optimize the program for size, as it will hamper its speed performance. So I went to project options,  checked the optimization settings of my code. Optimization was set to Speed and effort was LOW. I changed effort level to HIGH (just did something, I didn’t expect that code size will reduce or something) and compiled the code again … and too my surprise compiler managed to produce a code which filled entire flash of the uC, not a single byte less not a single byte more !!! :) Have a look ..

100percentflash

Hehe … Howz that :)

Be the first to like this post.This entry was posted on May 7, 2009 at 4:31 pm and is filed under AVR microcontroller. Tagged: AVR Micocontroller, coincidence, flash utilization. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


View the original article here

No comments:

Post a Comment