From owner-freebsd-hackers Fri Aug 24 13:10:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by hub.freebsd.org (Postfix) with ESMTP id EE0FA37B407; Fri, 24 Aug 2001 13:10:24 -0700 (PDT) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id f7OKAO645156; Fri, 24 Aug 2001 16:10:24 -0400 (EDT) (envelope-from bicknell) Date: Fri, 24 Aug 2001 16:10:24 -0400 From: Leo Bicknell To: John Baldwin Cc: Leo Bicknell , Steve Roome , freebsd-hackers@FreeBSD.org, "David O'Brien" Subject: Re: function calls/rets in assembly Message-ID: <20010824161024.A45122@ussenterprise.ufp.org> Mail-Followup-To: Leo Bicknell , John Baldwin , Leo Bicknell , Steve Roome , freebsd-hackers@FreeBSD.org, David O'Brien References: <20010824144732.A40302@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.org on Fri, Aug 24, 2001 at 11:51:10AM -0700 Organization: United Federation of Planets 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 Someone suggested to me privately turning on optimization, for the record that doesn't help much: (with -O2) .file "printasint.c" .version "01.01" gcc2_compiled.: .section .rodata .LC0: .byte 0x70,0x72,0x69,0x6e,0x74,0x20,0x74,0x68,0x69,0x73 .byte 0x20,0x25,0x64,0xa,0x0 .text .p2align 2,0x90 .globl printasint .type printasint,@function printasint: pushl %ebp movl %esp,%ebp subl $8,%esp addl $-8,%esp pushl 8(%ebp) pushl $.LC0 call printf leave ret .Lfe1: .size printasint,.Lfe1-printasint .ident "[ASM_FILE_END]GCC: (c) 2.95.2 19991024 (release)" -- Leo Bicknell - bicknell@ufp.org Systems Engineer - Internetworking Engineer - CCIE 3440 Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message