Marc Lavallée wrote:
Le 21 Novembre 2005 15:08, Hans-Christoph Steiner a écrit :
Assembly is even faster than C, so why aren't people writing objects in assembly?
Because assembly is unreadable, like some PD patches.
...and not portable, you need to write different code for each processor, whereas a C compiler can take c code and make the appropriate assembly from it. So c objects end up written in assembly anyway. The only advantage in writing directly in assembly is if you think you can write better code than the compiler, which was quite possible in the past, but nowadays not so easy.
Martin