Hello!
I asked this because i heard that DTMF generation for phone and sine wave generation code for
inverter works best with assembly code. But writing whole code in assembly could be tedious. So
if some of the part could be written n C and some in assembly.
One basic rule: never believe what your hear "as is". If somebody tells you something like that,
ask him for a convincing demonstration of what he says. And don't believe until you're 100%
convinced (i.e. in this case until you fully understand why assembly would be more efficient).
My experience is that today's compilers are so efficient that its usually very difficult to do anything
better "by hand" in assembly language. Beside this, there is nothing you can do in assembly and
cannot do in C. I'm not sure about addressing a specific CPU register in C, that would be the only
exception, but anyway if you do a+b, usually you don't care about which register is used.
A good thing to try: write some code in C, and look at the disassembly window in the debugger.
If you think you can do better, if you see obvious improvements, then do that by hand. Otherwise,
use the C compiler.
Dora.