From owner-freebsd-hackers Wed Jul 18 1: 7: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id 6FCD937B405 for ; Wed, 18 Jul 2001 01:07:05 -0700 (PDT) (envelope-from fmela0@sm.socccd.cc.ca.us) Received: from sm.socccd.cc.ca.us (pool0116.cvx4-bradley.dialup.earthlink.net [209.178.146.116]) by gull.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id BAA19551 for ; Wed, 18 Jul 2001 01:07:04 -0700 (PDT) Message-ID: <3B554445.193CE946@sm.socccd.cc.ca.us> Date: Wed, 18 Jul 2001 01:09:41 -0700 From: Farooq Mela X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: Quick question about x86 asm 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 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? Thanks. -- farooq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message