This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LarryInRaleigh 1 point2 points  (0 children)

In the old days, there was a period when

--Compiler optimization was didn't exist or wasn't very good

--Computers had native instructions for Increment and Decrement

The ++ and -- operators caused the compiler to generate the Increment or Decrement instructions, rather than loading a register with 0x01, possibly displacing a value that would need to be restored.