
汇编笔记
文章平均质量分 59
Rainlight126
这个作者很懒,什么都没留下…
展开
-
一个有意思的汇编问题
.section .data output: .ascii "what the fuck~!!/n" .section .text .global main main: movl $4,%eax #syscall_write movl $1,%ebx #(fd = 1 )== stdout movl $output,%ecx #string addr movl $1000,%edx #size,but overflow? int $0x80 movl $1,%e原创 2011-02-23 21:47:00 · 608 阅读 · 0 评论 -
从汇编角度看C语言类型转换
最近在看《Computer Systems--A Programmer‘s Perspective》觉得有关C语言指针转换部分很有意思,虽然以前常使用类型转化可是却不知道底层(编译器?)到底怎么做的,于是从汇编角度学习了一下。使用工具GNU gcc-4.4.5,vim-7.2 ,原创 2011-04-17 22:56:00 · 1032 阅读 · 0 评论