
汇编
资深码农多年
不知道,行不?
展开
-
汇编中多进程--初始例子
.section .datamsg: .ascii "start fork/n" msg_len = . - msgfather_msg: .ascii "this is father/n" father_msg_len = . - father_msgchild_msg: .ascii "this is child/n" child_msg_len = . -原创 2008-08-31 15:15:00 · 930 阅读 · 0 评论 -
学习as语法at&t汇编格式--hello,world
.section .data string: .ascii "hello,world/n" length = . - string.section .text .globl _start_start: #invoke system call write movl $4, %eax movl $1, %ebx movl $string, %ecx原创 2008-08-31 10:53:00 · 821 阅读 · 1 评论 -
整理系统调用
.equ restart, 0.equ exit, 1.equ fork, 2.equ read, 3.equ write, 4 .equ open, 5.equ close, 6.equ waitpid, 7.equ creat, 8.equ原创 2008-09-01 21:37:00 · 936 阅读 · 1 评论