Quote:
Originally Posted by Quoth
I can't think of a situation where an entire program needs to be in assembler.
|
Agreed.
Modern, high-quality C compilers are usually at least as good as expert programmers at optimisation, and often better. Use assembler when you need to know exactly what's happening at the hardware level, but otherwise use the compiler and associated optimisation tools, check the generated assembly for obvious mistakes, and spend your time on algorithmic optimisation rather than instruction-level tweaking.
Fundamentally, it comes down to that if you know something the compiler doesn't, code it in assembler. Otherwise, let it do its job.