Forum > Embedded

[CLOSED] IF ... ELSE vs IF

<< < (2/2)

julkas:
Thanks all for replies.
After reading your posts and articles about embedded programming best practices, I think that IF without ELSE would be better approach.
I will check ASM generated code for AVR.

Thaddy:

--- Quote from: julkas on October 23, 2019, 10:05:04 am ---Thanks all for replies.
After reading your posts and articles about embedded programming best practices, I think that IF without ELSE would be better approach.

--- End quote ---
That is simply not true. A jump can save you. Indeed, check the assembler.
If and if.. else have completely different meaning. Just in case you did not understand it... O:-)

Navigation

[0] Message Index

[*] Previous page

Go to full version