100% Flash utilization !! Elecrom May 7, 2009; Updated On: August 12th, 2015 3 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 .. Hehe … Howz that 🙂