News for hackers. Stuff that matters.
Re:Why is this C++ code faster than my hand-written assembly... by jcelerier on Tuesday August 22, 2017 @02:44PM (#15075272)
Notice how the asm changes here if changing it++ to ++it: https://godbolt.org/g/W5w7Dc
Re:Why is this C++ code faster than my hand-written assembly... by Karliss on Tuesday August 22, 2017 @03:36PM (#15075665)
Looks like only thing that changes is label name which doesn't matter.
Re:Why is this C++ code faster than my hand-written assembly... by jcelerier on Wednesday August 23, 2017 @03:01AM (#15079190)
nope, there are less instructions
Re:Why is this C++ code faster than my hand-written assembly... by vardump on Wednesday August 23, 2017 @09:37AM (#15081400)
Except that those instructions are not actually called in either case from function foo(). So they're dead code and linker will remove them.