簡單的範例
int main() {
return 42;
}$ gcc -o test1 test1.c
$ ./test1
$ echo $?
42.intel_syntax noprefix
.global main
main:
mov rax, 42
ret$ gcc -o test2 test2.s
$ ./test2
$ echo $?
42Last updated
int main() {
return 42;
}$ gcc -o test1 test1.c
$ ./test1
$ echo $?
42.intel_syntax noprefix
.global main
main:
mov rax, 42
ret$ gcc -o test2 test2.s
$ ./test2
$ echo $?
42Last updated