Article View: comp.std.c
Article #3436Re: Nested functions (was: Re: GOTO single exit point)
From: Michael Meissner
Date: Mon, 25 Sep 1995 16:50
Date: Mon, 25 Sep 1995 16:50
21 lines
1935 bytes
1935 bytes
In article <KANZE.95Sep25115042@slsvhdt.lts.sel.alcatel.de> kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) writes: | Also: the C++ committee considered and rejected nested functions. I | believe that at least part of the reason for the rejection was that | there exist (or might exist) architectures on which trampolines cannot | be implemented, and in this case, function pointers become more | complex, which violates the ``you only pay for what you use'' | principle. Trampolines are probably the buggiest feature of the GNU C compiler. You have to go through incredible hair on many machines, particularly RISC machines with Harvard architectures. Often times, you have to make a system call in order to create the trampolines (since there is no user callable instruction sequence to correctly flush the caches). Sometimes, the machine + OS just gives absolutely no way to implement trampolines (DEC's Ultrix on MIPS based DECstations comes to mind). -- Michael Meissner, Cygnus Support (East Coast) Suite 105, 48 Grove Street, Somerville, MA 02144, USA meissner@cygnus.com, 617-629-3016 (office), 617-629-3010 (fax)
Technical Details
Message-ID:
<MEISSNER.95Sep25125022@tiktok.cygnus.com>Path:
arc1-ca.pugleaf.net!cambridge-news.cygnus.com!meissnerReferences:
<3vn1ht$kj8@martha.utk.edu> <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu> <41iebe$kec@news0.rain.rg.net> <41pm80$skp@inferno.mpx.com.au> <DE02nC.B58@eskimo.com> <41t0sb$15e@news0.rain.rg.net> <DE6G2z.JJD@crdnns.crd.ge <43v2a8$b2g@hermes.acs.unt.edu> <KANZE.95Sep25115042@slsvhdt.lts.sel.alcatel.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!cambridge-news.cygnus.com!meissner From: meissner@cygnus.com (Michael Meissner) Newsgroups: comp.std.c,comp.lang.c Subject: Re: Nested functions (was: Re: GOTO single exit point) Date: 25 Sep 1995 16:50:22 GMT Organization: Cygnus Support Message-ID: <MEISSNER.95Sep25125022@tiktok.cygnus.com> References: <3vn1ht$kj8@martha.utk.edu> <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu> <41iebe$kec@news0.rain.rg.net> <41pm80$skp@inferno.mpx.com.au> <DE02nC.B58@eskimo.com> <41t0sb$15e@news0.rain.rg.net> <DE6G2z.JJD@crdnns.crd.ge <43v2a8$b2g@hermes.acs.unt.edu> <KANZE.95Sep25115042@slsvhdt.lts.sel.alcatel.de> NNTP-Posting-Host: tiktok.cygnus.com In-reply-to: kanze@lts.sel.alcatel.de's message of 25 Sep 1995 10:50:41 GMT