Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2001 16:10:24 -0400
From:      Leo Bicknell <bicknell@ufp.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Leo Bicknell <bicknell@ufp.org>, Steve Roome <stephen_roome@yahoo.com>, freebsd-hackers@FreeBSD.org, "David O'Brien" <obrien@FreeBSD.org>
Subject:   Re: function calls/rets in assembly
Message-ID:  <20010824161024.A45122@ussenterprise.ufp.org>
In-Reply-To: <XFMail.010824115110.jhb@FreeBSD.org>; from jhb@FreeBSD.org on Fri, Aug 24, 2001 at 11:51:10AM -0700
References:  <20010824144732.A40302@ussenterprise.ufp.org> <XFMail.010824115110.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010824161024.A45122>