From 6746150881532061735
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a69618ea97f65037
X-Google-Attributes: gidf78e5,public
From: Jason Merrill <jason@cygnus.com>
Subject: Re: nested functions
Date: 1998/05/03
Message-ID: <u9u377ogwq.fsf@yorick.cygnus.com>#1/1
X-Deja-AN: 349796501
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <6hac23$8lb$1@news2.isdnet.net> <353b85b9.0@news.iprolink.ch> <sfn2dcncm2.fsf@bidra168.bbn.hp.com> <35459993.3BC581B0@physik.tu-muenchen.de> <199804281743.NAA18001@calumny.jyacc.com> <35472A6D.562EA04C@physik.tu-muenchen.de> <35477A9B.3D6@noSPAM.central.beasys.com>
X-Original-Date: 03 May 1998 02:14:13 -0700
Organization: Cygnus Solutions, Sunnyvale, CA
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANUxIkOEDnX0m9pzZAQEltQF/RpBXlu8gwz1ywv5Gn7xYH9uqAHeom2yi av4zMZFG7EVFMv8yvocxrOeVXyEIS+va =80e8
Newsgroups: comp.std.c++


>>>>> David R Tribble <david.tribble@noSPAM.central.beasys.com> writes:

> All of these are solved by some form of "display" activation record.
> Pascal, which supports nested routines, uses this kind of mechanism.
> Apparently g++ uses something similar (called a "trampoline") but
> that has less overhead for non-nested routines.

gcc uses a dynamic chain, which is an alternative to displays.  But only
the C frontend (and, naturally, the Pascal frontend) supports this; g++
does not, because nobody has done the necessary work.

Jason
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



