Some time ago I wrote this article about using integer operations to calculate fractal images. Currently, I’m giving a course which prepares for malware analysis. Among other things we deal a lot with Intel assembler and how compilers create and optimize code.
The full code of everything discussed below (and also of the article referred to above) is found on Github at github.com/rahra/intfract.
One of the exercises was to write the integer version of the iteration function manually in assembler. Here is the original version in C: Continue reading