Instructions complexity?

Hi, All is there any guide(link,book). which tells about complexity of instructions we use in microcontroller's programming in c language e.g switch() is better or if statement.
I know it mostly depends on compiler . but any general help.
to make program most efficient fast for execution, with best choice of instructions like
if(SW) is better than if(SW==1)
Thanks in advance
.Yatoof
There isn't.

It is not necessarily straightforward to answer what control structures are faster than others. switch() might be faster than if-else if-else if-else under certain conditions.

Topic archived. No new replies allowed.