From owner-freebsd-hackers Wed Jul 18 9:46:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 352C437B406 for ; Wed, 18 Jul 2001 09:46:57 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.247.138.210.Dial1.SanJose1.Level3.net [209.247.138.210]) by falcon.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id JAA11415; Wed, 18 Jul 2001 09:46:41 -0700 (PDT) Message-ID: <3B55BD97.A6E40F1E@mindspring.com> Date: Wed, 18 Jul 2001 09:47:19 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Farooq Mela Cc: hackers@FreeBSD.ORG Subject: Re: Quick question about x86 asm References: <3B554445.193CE946@sm.socccd.cc.ca.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Farooq Mela wrote: > > Hi -hackers, > > I'm developing some assembly routines that are called from a C library > under FreeBSD. Some of these routines do not return anything (ie, > prototyped in C, their return type is 'void'). Does the compiler > expect that the asm routines that don't return anything will preserve > the value of %eax? That is, must we push it and later pop it before > returning from the routine, or are we free to modify it as we please > without restoring its value to what it was when the routine was > called? cc -S is your friend. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message