Capstones, performance and other architectures

The end of the course: two capstone programs, a reverse-Polish calculator and a hex dumper, a measurement of cycles and cache, the AVX instructions of a modern x86-64, and ARM assembly as a second architecture to read after x86-64.

8.1 Capstone: command-line calculator a reverse-Polish calculator that walks argv, uses a manual stack and prints the result in decimal Open 8.2 Capstone: hex editor a hex dumper that prints offset, bytes and ASCII, and a patcher that writes one byte at an offset Open 8.3 Performance: cycles and cache rdtsc timing, cache lines, and a loop that is sequential instead of random Open 8.4 Modern x86: AVX tour the YMM registers, the VEX encodings, and the CPUID check for AVX support Open 8.5 ARM assembly the registers of AArch64, conditional execution, and the syscalls of Linux on ARM Open

Lessons