.section .data myvalue: .int 67 .section .text .globl main main: movl $myvalue,%ecx push $myvalue call printf push $0 call exit
deepfuture@deepfuture-laptop:~/private/mytest$ gcc -o test12 test12.s
deepfuture@deepfuture-laptop:~/private/mytest$ ./test12
Cdeepfuture@deepfuture-laptop:~/private/mytest$
汇编的movl使用