This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

if vs switch case in latest ARM GCC

Hi Experts,

What is the key difference between if/else  and swtich case statements  ?

How the modern ARM GCC compilers handles it ?

Parents
  • If you really want to know what the compiler does about them you should start looking up things like static single assignment (SSA) and phi functions. Compilers can be a bit tricky in some areas but the source for how things like conditionals are handled and optimized for each particular architecture is really quite readable and almost user friendly nowadays.

Reply
  • If you really want to know what the compiler does about them you should start looking up things like static single assignment (SSA) and phi functions. Compilers can be a bit tricky in some areas but the source for how things like conditionals are handled and optimized for each particular architecture is really quite readable and almost user friendly nowadays.

Children
No data