From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: Michael Meissner Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/08 Message-ID: #1/1 X-Deja-AN: 278754623 References: <61fnnc$lgc@news-rocq.inria.fr> Organization: Cygnus Solutions Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec harley@pauillac.inria.fr (Robert Harley) writes: > when GCC, for instance, has arbitrarily deep nesting with Pascal-style > lexical scoping? Oh no! It's not strictly standard-conforming! > La-di-frickin-da. It's works just fine on Alpha, ARM, Intel, Sparc > and experimental backroom chips nobody ever heard of, in my > ever-so-humble experience. (However I find it totally useless). Nested functions do have problems on some chips (and under some OSes for other chips) when you take the address of the nested function and the compiler has to synthesize a trampoline on the stack. Of course, building executable hunks at runtime comes in use in other situations, such as just-in-time Java compilers, and writing optimial sort programs that build the comparison function from a generalized input. -- Michael Meissner, Cygnus Solutions (East Coast) 4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA meissner@cygnus.com, 617-354-5416 (office), 617-354-7161 (fax)