On Wednesday 09 November 2005 11:53 pm, Philipp Thomas wrote:
On Tue, 8 Nov 2005 16:00:57 -0500, Allen wrote:
A myth usually shown false with a little assembler.
Not all assembler code is faster then what a good optimizing compiler does. Even assembler wizards like Michael Abrash have been telling that for quite a long time. In most cases, the win from using assembler is so minimal that it's just not worth the effort.
Philipp
Assembler is good when you want to tickle the registers of a periferial device. I will observe that Java has a lot of asm calls in the platform specific parts. And, yes, a lot of that stuff is C, not C++. What I was taught in my course on hardware in college years ago is that some compilers on "RISC" processors skipped assembler, and wrote in a more cryptic instruction set which was virtually impossible for a human to make sense of. The assembler instructions for such systems is written as a "higher level" language. http://www.unix.org/images/unix_plate-med.jpg Steven