3 ms·
It's worth it to go through the slides from this talk by Felix von Leitner on Source Code Optimization: http://www.linux-kongress.org/2009/slides/compiler_surve
by scott_s 16y ago
It's worth it to go through the slides from this talk by Felix von Leitner on Source Code Optimization: http://www.linux-kongress.org/2009/slides/compiler_survey_felix_von_leitner.pdf http://www.linux-kongress.org/2009/slides/compiler_survey_fe...
If you're writing an entire application in assembly for fun, then, sure, have at it. But if you're writing an entire application in assembly because you want better performance, then I think you're misguided. Write it in C, turn all optimizations on, run it with a bunch of benchmarks, profile it. Look to see where the bottlenecks are. Optimize those, maybe in assembly, or maybe by just being smarter with your C code.