Hi all,
I am using Keil version "Vision3v3.53". It has 10(0-9) levels of optimization during compiling. I am working on a project where requirement is to reduce the code size. In default settings when i compile code, the code size comes around 62k and when i use optimization options the code side reduces as per my requirement. When i use the 9th level optimization option i.e. COMMON BLOCK SUBROUTINES, the code size comes to around 49k. Now my query is...
Is there any side effect of using these optimization level? If so what can be that effect? which level of optimization i can use so that it doesn't has any side effect on code. Also if any one knows better optimization(in terms of code size) technique then this, please suggest me...
Thanks in Advance. Antriksh
Boolean variables as one-bit variables tends to give huge improvements, when moving code from standard C. The 8051 processor loves boolean expressions like hardly any other processor.
On the other hand - it absolutely hates anything larger than 8 bits. That includes use of pointers - especially function pointers.
And it hates recursive functions.