AT&T Assembly for Linux and Mac (sys_exit)
2015-04-15 21:39
381 查看
Exit() in C : (sys_exit.c)
Exit() in AT&T for Linux: (sys_exit.s)
Exit() in AT&T for Mac: (sys_exit.s):
int main(void) { return 99; }
Exit() in AT&T for Linux: (sys_exit.s)
.section .data .section .text .globl _start _start: movl $1, %eax #sys_call number movl $99, %ebx #_return value int $0x80 #intrrupt number
Exit() in AT&T for Mac: (sys_exit.s):
.globl _main _main: movl $99, %eax ret
相关文章推荐
- AT&T Assembly for Linux and Mac (sys_write)
- AT&T ASSEMBLY FOR LINUX AND MAC (SYS_FORK)
- Set up SSH for Git and Mercurial on Mac OSX/Linux
- Assembly Intro - Intel and AT&T Syntax
- The pros and "conns" of Intel's ConnMan for Linux
- Microsoft/Git-Credential-Manager-for-Mac-and-Linux
- AT&T Assembly on Linux
- 为树莓派做系统备份镜像(for Linux & Mac)
- Issue 71 - pymssql - Undefined symbols on Mac, CentOS, Redhat with pre-compiled build - A fast MS SQL Server client library for Python directly using C API instead of ODBC. It is Python DB-API 2.0 compliant. Works on Linux, *BSD, Solaris, Mac OS X and Win
- Ubuntu Hacks : Tips & Tools for Exploring, Using, and Tuning Linux
- Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers
- Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting
- Inline Assembly(for GNU assembler)-the difference of AT&T & intel
- 【Linux】psql: FATAL: Ident authentication failed for user "username" Error and Solution
- Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers
- Timer Class for both Unix/Linux/Mac and Windows system
- Vysor破解助手for Linux and macOS
- linux AT &T Assembly
- IEEE格式检查报错(字体未嵌入)的处理方法(for linux & mac)
- Linux AT&T 汇编错误:Error: invalid instruction suffix for `push'