From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 6 13:04:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99DBE16A4CE for ; Sat, 6 Mar 2004 13:04:37 -0800 (PST) Received: from smtp1.acsu.buffalo.edu (smtp1.acsu.buffalo.edu [128.205.6.84]) by mx1.FreeBSD.org (Postfix) with SMTP id 1949143D2F for ; Sat, 6 Mar 2004 13:04:37 -0800 (PST) (envelope-from chsiung2@buffalo.edu) Received: (qmail 10355 invoked from network); 6 Mar 2004 21:04:36 -0000 Received: from dhcp103-091.openport.buffalo.edu (HELO bear.bflony.adelphia.net) (128.205.103.91) by smtp1.acsu.buffalo.edu with SMTP; 6 Mar 2004 21:04:36 -0000 Date: Sat, 6 Mar 2004 16:04:55 +0000 From: chungwei Hsiung To: des@des.no (Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?=) Message-Id: <20040306160455.0d3f5c76@bear.bflony.adelphia.net> In-Reply-To: References: <4048CA38.6040203@yahoo.com> <20040305233209.GO67801@wantadilla.lemis.com> <20040306142651.314430be@bear.bflony.adelphia.net> <20040306202517.GA8384@x-anthony.com> <20040306154404.7da5ba81@bear.bflony.adelphia.net> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org Subject: Re: Strange instructions in compiler output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 21:04:37 -0000 OH.... yes... this is FreeBSD not linux, I will try it on the linux box later thank you for the clarification, but how does FreeBSD know where the passed= arguments are?? just out of curiosity.. thanks again Chungwei On Sat, 06 Mar 2004 21:47:10 +0100 des@des.no (Dag-Erling Sm=F8rgrav) wrote: > chungwei Hsiung writes: > > I still don't understand it because we are supposed to pass in the > > op code 0xb to %eax, and arguments to %ebx, %ecx, and %edx before > > calling interupt, but I can't see any of those instruction > > anywhere. Did I miss anything? >=20 > Huh? Arguments are passed on the stack, and execve() is syscall 59 > (0x3b as you can see in the disassembly). What gave you the idea that > we were passing arguments in registers? This isn't DOS, you know... >=20 > DES > --=20 > Dag-Erling Sm=F8rgrav - des@des.no >=20