News for hackers. Stuff that matters.
Re:Popcount CPU instruction by onedognight on Sunday September 08, 2019 @11:14PM (#20914933)
Both gcc and clang can often detect tail recursive functions and implement them with plain loops with no recursive call.
Re:Popcount CPU instruction by cryptoz on Sunday September 08, 2019 @11:30PM (#20915004)
I assume this is advantageous because then they can unfurl the loops and parallelize instructions across loop 'boundaries'? I wonder if there are other advantages.
Re:Popcount CPU instruction by onedognight on Sunday September 08, 2019 @11:38PM (#20915040)
Bounded stack usage is the main advantage.