【发布时间】:2014-10-24 23:47:13
【问题描述】:
当我运行我的程序时,我遇到了分段错误错误。我不明白为什么。
.data
str1: .string "hello"
str2: .string "world"
.text
.globl _start
_start:
pushl $str1
call puts
call strcall
call finish
strcall:
pushl $str2
call puts
ret
finish:
movl $1, %eax
movl $0, %ebx
int $0x80
知道为什么会这样吗?
【问题讨论】:
标签: assembly x86 segmentation-fault calling-convention