Saturday, August 06, 2011

PDF slides prepared for Chapter 16

PDF slides are now available on http://seyfarth.tv/asm for "Chapter 16: High Performance Assembly Programming".  This chapter is about some general strategies, most of which are done quite well by modern compilers.

The last 3 chapters explore 3 different algorithms which have been implemented in assembly.  In some of these the assembly code is far faster than the compiled C code.  This is generally only possible if you employ specialized instructions which are usually harder for the compiler to apply given your high level language code.  These instructions usually require some rearranging of the algorithm which is hard for a compiler to do better than a human.

No comments: