Date: Wed, 18 Jul 2001 09:47:19 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Farooq Mela <fmela0@sm.socccd.cc.ca.us> Cc: hackers@FreeBSD.ORG Subject: Re: Quick question about x86 asm Message-ID: <3B55BD97.A6E40F1E@mindspring.com> References: <3B554445.193CE946@sm.socccd.cc.ca.us>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B55BD97.A6E40F1E>