News for hackers. Stuff that matters.
Re:C and C++ Prioritize Performance over Correctness by jacquesm on Friday August 18, 2023 @05:00PM (#37182039)
The easy way to achieve that is to freeze the assembly once it is generated and to keep the C inlined around as documentation, as well as a way to regenerate the whole thing should it come to that (and then, indeed you'll need to audit the diff to make sure the code generator didn't just optimize away your carefully unrolled loops).
Re:C and C++ Prioritize Performance over Correctness by asvitkine on Friday August 18, 2023 @05:30PM (#37182400)
Is there any tooling for that or are you talking hypothetically?
Re:C and C++ Prioritize Performance over Correctness by jacquesm on Friday August 18, 2023 @05:44PM (#37182560)
Just standard unix tooling, what else do you need? It's as powerful a set of text manipulation tools as you could wish for.