Hi I have an evaluation version of uVision. I have written some codes by using firmware framwork as my starting point. Everytime I build my codes, I am getting Code Size Limit in Restricted Version Exceed. How big is the limt(4K)? Is it the size of each file or the total size of all my combined files? Does anyone know any trick about cutting the size of the code significantly? Many Many Thanks for any input
"How big is the limt(4K)? Is it the size of each file or the total size of all my combined files?" The restrictions are listed on this website. "Does anyone know any trick about cutting the size of the code significantly?" Delete some of it.
"Does anyone know any trick about cutting the size of the code significantly?" Yes - just use the 'Search' facility and you'll find them! Try keywords like "efficient" and "optimum" There's also a section about it in the back of the Manual
"using firmware framwork as my starting point." What does that mean? Is this "firmware framwork" specifically designed for the 8051, or even for small, 8-bit processors in general? If not, it will almost certainly produce bloatware!
Everytime I build my codes, I am getting Code Size Limit in Restricted Version Exceed That means it is time to purchase a full version. Erik
One place i have found to look at is for loops... most ppl use for (N = 0; N < 10; N++).... the 8051 has no good opcodes for this construct... but it does have a very good op code for the reverse of the for loop... for (N = 10; N != 0; N--)... the 8051 uses the opcode DJNZ... i have found that changing for loops to the 2nd method can save hundreds of bytes of code space over the whole application...