News for hackers. Stuff that matters.
Re:Will it optimize? by Aegean on Saturday July 24, 2010 @04:57AM (#1543368)
He could have added the switch statement optimization. That's my favorite. GCC 4 can optimize switch statements with sequential keys e.g. (1,2,3,4 ...) into a jump table. This was AFAIK introduced in GCC 4
Re:Will it optimize? by ramchip on Sunday July 25, 2010 @05:39AM (#1545271)
But he did: The switch statement was optimized to a jump table, while the if statements became a long sequence of compares.