Article View: gnu.gcc.help
Article #53249Re: Does gcc 2.0 support computed gotos?
From: Paul Wilson
Date: Fri, 21 Feb 1992 03:12
Date: Fri, 21 Feb 1992 03:12
28 lines
1914 bytes
1914 bytes
In article <1992Feb21.023817.17703@athena.mit.edu> mjhostet@slayer.mit.edu (Mat Hostetter) writes:
>I saw in the GNU status report that "C has been extended to support
>nested functions, nonlocal gotos, and taking the address of a label."
>
>Will there be any way to have an array of label-pointers and dispatch to the
>one I want? (eg, "goto label_array[x]".) (I basically need a switch that does
>no bounds checking, for a really speed-intensive loop.)
>
>-Mat
This would be hugely wonderful for people like me who want to compile
other languages to C. If somebody finds out the answer, please post.
Another handy feature I'm wondering about:
The ability to allocate a register for a global variable without
knowing the register name on the actual platform... that is, being
able to say "first reservable register", "second reservable register",
and "third reservable register" rather than A0 or whatever. The
GCC 1 manual said this might happen eventually.
-- Paul
--
| Paul R. Wilson, runtime environmentalist email: wilson@cs.utexas.edu |
| U. of Texas Computer Sciences Dept. voice: (512) 471-9555 |
| Taylor Hall 2.124, Austin, TX 78712-1188 fax: (512) 471-8885 |
| "Inertia makes the world go 'round." DoD MC # e (Sz GS 450T) |
Technical Details
Message-ID:
<kq8rgjINNimi@estoril.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!newsReferences:
<1992Feb21.023817.17703@athena.mit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5fb12b206120b8ea X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-20 19:23:53 PST Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!news From: wilson@cs.utexas.edu (Paul Wilson) Newsgroups: gnu.gcc.help Subject: Re: Does gcc 2.0 support computed gotos? Date: 20 Feb 1992 22:12:19 -0500 Organization: CS Dept, University of Texas at Austin Lines: 28 Message-ID: <kq8rgjINNimi@estoril.cs.utexas.edu> References: <1992Feb21.023817.17703@athena.mit.edu> NNTP-Posting-Host: estoril.cs.utexas.edu