From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3626ccca6bb70e55 X-Google-Attributes: gid111c93,public X-Google-Thread: 1014db,3626ccca6bb70e55 X-Google-Attributes: gid1014db,public X-Google-Thread: 102b75,4820dfa6cb2bff3e X-Google-Attributes: gid102b75,public From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Subject: first-class labels (was: 21264 performance anomalies) Date: 1999/04/16 Message-ID: <7f7l23$i95$1@news.tuwien.ac.at>#1/1 X-Deja-AN: 467164775 References: <87d81hkqw0.fsf@pfaffben.user.msu.edu> <7eemp3$11ap@news1.newsguy.com> <370BA607.1F391244@moene.indiv.nluug.nl> <7ei0gg$1kg$1@news.tuwien.ac.at> <370CF898.BD85182@moene.indiv.nluug.nl> <7ej80q$o1a$1@news.tuwien.ac.at> <923660402.19654.0.nnrp-12.9e981e55@news.demon.co.uk> <7f2e17$ds2$1@news1.rmi.net> <3714DA77.6150C99A@bell-labs.com> Followup-To: comp.lang.c Organization: Institut fuer Computersprachen, Technische Universitaet Wien Newsgroups: comp.os.linux.alpha,comp.arch,comp.lang.c In article <3714DA77.6150C99A@bell-labs.com>, Dennis Ritchie writes: > Robert Herndon wrote: > > Since day 1, labels in C have had type "pointer to int". (Check out > > "icode" in AT&T Version 6 Unix (pre-1976).) Did this change with ANSI > > C? > > This went away on day 2 (actually between 6th and 7th edition). > Unfortunately, it came back with gcc, didn't it? Why did you eliminate first-class labels, and why do you find their inclusion in gcc unfortunate? My experiences with gcc's labels-as-values feature is very positive. It provides a significant speedup for the interpreter I work on, and I don't see any disadvantages. In numbers: the speedup factor of Gforth (which uses threaded code with labels-as-values) over PFE (which uses an ANSI C compliant technique which I call "call threading") on a number of benchmarks is of 1.5-1.74 on a 486/66. Followups to comp.lang.c. - anton -- M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html