CSAPP
Baocai3000
技术源于需求又高于需求
展开
-
CSAPP:Ch0 十进制与16进制的转换脚本
#!/usr/bin/perl#convert hex to decimalfor($i=0;$i#!/usr/bin/perl#convert list of decimal nums to hexfor($i=0;$i原创 2010-12-14 10:35:00 · 1086 阅读 · 0 评论 -
CSAPP:Big endian and Little endian
<br /> <br />Some machines choose to store the object in memory ordered from least significant byte to most, while other machines store them from most to least. The former convention—where the least significant byte comes first—is referred to as little end原创 2010-12-14 11:14:00 · 955 阅读 · 0 评论 -
反汇编与寄存器结构
<br />1.寻找一个program的字节码表示:<br /> <br />【gdb下面】(gdb) x/19xb sum<br />【使用objdump】unix> objdump -d code.o2.size of types and GAS suffix:3.整数寄存器:<br />原创 2010-12-29 11:50:00 · 704 阅读 · 0 评论 -
movb,movsbl,movsbl的区别
<br /> <br />Both the movsbl and the movzbl instruction serve to copy a byte and to set the remaining bits in the<br />destination. The movsbl instruction takes a single-byte source operand, performs a sign extension to 32<br />bits (i.e., it sets the high原创 2011-01-05 10:42:00 · 9734 阅读 · 2 评论