From owner-freebsd-hackers Mon Aug 27 3:18:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by hub.freebsd.org (Postfix) with ESMTP id 7881637B407 for ; Mon, 27 Aug 2001 03:18:26 -0700 (PDT) (envelope-from netch@lucky.net) Received: from netch@localhost (netch@localhost) by burka.carrier.kiev.ua id NHA19639; Mon, 27 Aug 2001 13:18:14 +0300 (EEST) (envelope-from netch) Date: Mon, 27 Aug 2001 13:18:14 +0300 From: Valentin Nechayev To: Steve Roome Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: function calls/rets in assembly Message-ID: <20010827131814.A18891@lucky.net> Reply-To: netch@lucky.net References: <20010824010139.E365@dylan.home> <20010827081112.C365@dylan.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010827081112.C365@dylan.home> X-42: On 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 Mon, Aug 27, 2001 at 08:11:12, stephen_roome wrote about "Re: function calls/rets in assembly": > One final question... (which may be a gcc question, sorry if it is..) > > why do we have some people proposing the use of "leave". When from the > docs I've read, leave takes longer than a mov and return ? To optimize for some higher than i386, use -mcpu= With -mcpu=i486 and higher, gcc writes movl %ebp,%esp popl %ebp Also consider -march= option. /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message