background preloader

Tutorials

Facebook Twitter

Books for hacker-minded people - HackerBooks - Vimperator. Understanding C by learning assembly - Blog - Hacker School - Vimperator. Last time, Alan showed how to use GDB as a tool to learn C.

Understanding C by learning assembly - Blog - Hacker School - Vimperator

Today I want to go one step further and use GDB to help us understand assembly as well. Abstraction layers are great tools for building things, but they can sometimes get in the way of learning. My goal in this post is to convince you that in order to rigorously understand C, we must also understand the assembly that our C compiler generates. I'll do this by showing you how to disassemble and read a simple program with GDB, and then we'll use GDB and our knowledge of assembly to understand how static local variables work in C. Note: All the code in this post was compiled on an x86_64 CPU running Mac OS X 10.8.1 using Clang 4.0 with optimizations disabled (-O0*) Vim Novice Tutorial Videos - Derek Wyatt's Blog - Vimperator. A guide to the basics of jQuery - Vimperator.