From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <06b78404a549aa66986788bcb976b339@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] useful language extension, or no? From: David Gordon Hogan MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 18 Jul 2002 20:52:21 -0400 Topicbox-Message-UUID: d195f9b2-eaca-11e9-9e20-41e7f4b1d025 >>or does gcc also not do that, really. > Look bellow: Interesting. My guess is that it's creating a trampoline on the stack, which calls the real g(), which nm tells me is at: 080485a6 t g.0 Unfortunately gdb on the Linux server is unable to show me the instructions: Reading symbols from a.out...Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader. But a quick grep for "tramp" in the gcc source finds such beauties as: libgcc2.c:1639: /* Make stack executable so we can call trampolines on stack. and (in function.c): /* Return the address of the trampoline for entering nested fn FUNCTION. If necessary, allocate a trampoline (in the stack frame) and emit rtl to initialize its contents (at entry to this function). */ ...and that's about all that I have the stomach for right now...