C++ and assembly language in the same project?

Someone asked about assembly programming for Arduino. That may be possible but it is much easier to do only certain parts with assembler.

With assembly you can count yourself how much time will a certain part take time. And fine tune the timings easily.

And fine tune the timings easily.

Your definition of easily is obviously different to mine.

With a Risc cpu most, if not all, machine language instructions take the same time. I my opinion that is easy.

I wouldn't call the AVR's RISC.

But only use assembly when its use is demonstrated. Gcc is very, very good.

KeithRB:
I wouldn't call the AVR's RISC.

Strange then, that its manufacturers do.

LMI:
With a Risc cpu most, if not all, machine language instructions take the same time. I my opinion that is easy.

A quick scan of the datasheet will dispell that belief.

I'd estimate ~ 1/2 of the 131 are 1 clock, ~ 1/2 are 2 clock, and a few are 3 to 4.

KeithRB:
I wouldn’t call the AVR’s RISC.

But only use assembly when its use is demonstrated. Gcc is very, very good.

I have not used any assembler for years. But if someone has or thinks he/she has good reason to use whatever other language, it is not my job to stop it.